Fixed regression in 2.0: plugins ONDBInsert and ONDBUpdate where not called anymore

SVN:trunk[2330]
This commit is contained in:
Romain Quetiez
2012-10-23 09:26:28 +00:00
parent 4981344c24
commit 3889bdf293

View File

@@ -2596,9 +2596,9 @@ EOF
return $aErrors;
}
protected function DBInsertTracked_Internal($bDoNotReload = false)
public function DBInsertNoReload()
{
$res = parent::DBInsertTracked_Internal($bDoNotReload);
$res = parent::DBInsertNoReload();
// Invoke extensions after insertion (the object must exist, have an id, etc.)
foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance)
@@ -2621,9 +2621,9 @@ EOF
return $oNewObj;
}
protected function DBUpdateTracked_Internal()
public function DBUpdate()
{
$res = parent::DBUpdateTracked_Internal();
$res = parent::DBUpdate();
// Invoke extensions after the update (could be before)
foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance)