From 78c63f7502baa3e781582ccfe6cf05c95ce7bb34 Mon Sep 17 00:00:00 2001 From: Anne-Cath Date: Tue, 29 Jul 2025 11:35:45 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06980=20-=20Remove=20cmdbAbstractObject::?= =?UTF-8?q?DBCloneTracked=5FInternal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cmdbabstract.class.inc.php | 22 ---------------------- core/cmdbobject.class.inc.php | 8 -------- 2 files changed, 30 deletions(-) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index 05518bb68..eff21c951 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -4575,28 +4575,6 @@ HTML; InlineImage::FinalizeInlineImages($this); } - /** - * @deprecated 3.1.1 3.2.0 N°6966 We will have only one DBClone method in the future - */ - protected function DBCloneTracked_Internal($newKey = null) - { - /** @var cmdbAbstractObject $oNewObj */ - $oNewObj = MetaModel::GetObject(get_class($this), parent::DBCloneTracked_Internal($newKey)); - - // Invoke extensions after insertion (the object must exist, have an id, etc.) - /** @var \iApplicationObjectExtension $oExtensionInstance */ - foreach(MetaModel::EnumPlugins('iApplicationObjectExtension') as $oExtensionInstance) - { - $sExtensionClass = get_class($oExtensionInstance); - $this->LogCRUDDebug(__METHOD__, "Calling $sExtensionClass::OnDBInsert()"); - $oKPI = new ExecutionKPI(); - $oExtensionInstance->OnDBInsert($oNewObj, self::GetCurrentChange()); - $oKPI->ComputeStatsForExtension($oExtensionInstance, 'OnDBInsert'); - } - - return $oNewObj; - } - public function DBUpdate() { $this->LogCRUDEnter(__METHOD__); diff --git a/core/cmdbobject.class.inc.php b/core/cmdbobject.class.inc.php index 1106b0fd2..0c8452a1a 100644 --- a/core/cmdbobject.class.inc.php +++ b/core/cmdbobject.class.inc.php @@ -433,14 +433,6 @@ abstract class CMDBObject extends DBObject } public function DBClone($newKey = null) - { - return $this->DBCloneTracked_Internal(); - } - - /** - * @deprecated 3.1.1 3.2.0 N°6966 We will have only one DBClone method in the future - */ - protected function DBCloneTracked_Internal($newKey = null) { $newKey = parent::DBClone($newKey); $oClone = MetaModel::GetObject(get_class($this), $newKey);