mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
APICHANGE: removed deprecated fieldExists() function. Use hasField() instead
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@93633 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
e0f1fa8c3a
commit
f50066cddd
@ -2321,16 +2321,6 @@ class DataObject extends ViewableData implements DataObjectInterface, i18nEntity
|
||||
return $val;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated 2.3 (For external use) Please use hasField(), hasDatabaseField(), hasOwnTableDatabaseField() instead
|
||||
*
|
||||
* @param string $field Name of the field
|
||||
* @return string The field type of the given field
|
||||
*/
|
||||
public function fieldExists($field) {
|
||||
return $this->hasOwnTableDatabaseField($field);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the DBField object that represents the given field.
|
||||
* This works similarly to obj() with 2 key differences:
|
||||
|
Loading…
x
Reference in New Issue
Block a user