Rename MetaModel::IsObjectExistsInDb() to MetaModel::IsObjectInDB()

This commit is contained in:
Molkobain
2021-08-12 09:37:24 +02:00
parent c475e66176
commit 0fc912b357
2 changed files with 2 additions and 2 deletions

View File

@@ -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)";
}
}

View File

@@ -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);