From 0fc912b3573d059c2a05cedfc5e25cd00855a63d Mon Sep 17 00:00:00 2001 From: Molkobain Date: Thu, 12 Aug 2021 09:37:24 +0200 Subject: [PATCH] Rename MetaModel::IsObjectExistsInDb() to MetaModel::IsObjectInDB() --- core/dbobject.class.php | 2 +- core/metamodel.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbobject.class.php b/core/dbobject.class.php index b4bea3cfb..942afe0f2 100644 --- a/core/dbobject.class.php +++ b/core/dbobject.class.php @@ -1866,7 +1866,7 @@ abstract class DBObject implements iDisplay { /** @var \AttributeExternalKey $oAtt */ $sTargetClass = $oAtt->GetTargetClass(); - if (false === MetaModel::IsObjectExistsInDb($sTargetClass, $toCheck)) { + if (false === MetaModel::IsObjectInDB($sTargetClass, $toCheck)) { return "Target object not found ($sTargetClass::$toCheck)"; } } diff --git a/core/metamodel.class.php b/core/metamodel.class.php index e02f21c44..099615ee7 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -7002,7 +7002,7 @@ abstract class MetaModel * * @since 3.0.0 N°4173 */ - public static function IsObjectExistsInDb(string $sClass, int $iKey): bool + public static function IsObjectInDB(string $sClass, int $iKey): bool { $oFilter = DBObjectSearch::FromOQL('SELECT '.$sClass.' WHERE id = :id', ['id' => $iKey,]); $oSet = new DBObjectSet($oFilter);