From 3791b2dd240242d8990ba64d751acba20b45af43 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Tue, 28 May 2019 12:17:29 +0200 Subject: [PATCH] :memo: Change return type for \MetaModel::GetObject --- core/metamodel.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/metamodel.class.php b/core/metamodel.class.php index 0fcfc383c0..215805948d 100644 --- a/core/metamodel.class.php +++ b/core/metamodel.class.php @@ -6665,20 +6665,21 @@ abstract class MetaModel * Instantiate an object already persisted to the Database. * * @api + * @see MetaModel::GetObjectWithArchive to get object even if it's archived + * @see utils::PushArchiveMode() to enable search on archived objects + * * @param string $sClass * @param int $iKey id value of the object to retrieve * @param bool $bMustBeFound see throws ArchivedObjectException * @param bool $bAllowAllData if true then user rights will be bypassed - use with care! * @param null $aModifierProperties * - * @return DBObject|null null if : (the object is not found) or (archive mode disabled and object is archived and + * @return \cmdbAbstractObject null if : (the object is not found) or (archive mode disabled and object is archived and * $bMustBeFound=false) * @throws CoreException if no result found and $bMustBeFound=true * @throws ArchivedObjectException if archive mode disabled and result is archived and $bMustBeFound=true * @throws \Exception * - * @see MetaModel::GetObjectWithArchive to get object even if it's archived - * @see utils::PushArchiveMode() to enable search on archived objects */ public static function GetObject($sClass, $iKey, $bMustBeFound = true, $bAllowAllData = false, $aModifierProperties = null) {