mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
ENH Make DataObject::exists() an alias of DataObject::isInDB() (#10407)
This commit is contained in:
parent
6afcd39d4b
commit
10ef46a5ec
@ -849,7 +849,7 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
|||||||
*/
|
*/
|
||||||
public function exists()
|
public function exists()
|
||||||
{
|
{
|
||||||
return (isset($this->record['ID']) && $this->record['ID'] > 0);
|
return $this->isInDB();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user