ENH Make DataObject::exists() an alias of DataObject::isInDB() (#10407)

This commit is contained in:
Guy Sartorelli 2022-08-16 09:43:54 +12:00 committed by GitHub
parent 6afcd39d4b
commit 10ef46a5ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
*/
public function exists()
{
return (isset($this->record['ID']) && $this->record['ID'] > 0);
return $this->isInDB();
}
/**