protected function DBDeleteTracked_Internal(&$oDeletionPlan = null) { // Invoke extensions before the deletion (the deletion will do some cleanup and we might loose some information foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance) { $oExtensionInstance->OnDBDelete($this, self::GetCurrentChange()); } return parent::DBDeleteTracked_Internal($oDeletionPlan); }