protected function DBCloneTracked_Internal($newKey = null) { $oNewObj = parent::DBCloneTracked_Internal($newKey); // Invoke extensions after insertion (the object must exist, have an id, etc.) foreach (MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance) { $oExtensionInstance->OnDBInsert($oNewObj, self::GetCurrentChange()); } return $oNewObj; }