method
public
ObjectField::getEntity()
Сигнатура
public getEntity() : mixed
Возвращаемое значение
mixed
Как применяется в ObjectField
ObjectField::getEntity() — метод класса \Bitrix\Main\ORM\Fields\ObjectField модуля «Главный модуль». ObjectField: Класс поля сущности для типа данных object.
Метод объекта: сначала нужен экземпляр ObjectField.
use Bitrix\Main\ORM\Fields\ObjectField;
/** @var ObjectField $object */
$result = $object->getEntity();
// $result: mixedДругие методы ObjectField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureDefaultValue()configureFulltext()configureNullable()configureObjectClass()configurePrimary()
getEntity() есть и у других классов модуля «Главный модуль»: AccessPermissionTable, AccessRoleRelationTable, AccessRoleTable, ApplicationPasswordTable, ArrayField, BooleanField, CacheCleanPathTable, CacheTagTable.
Исходный файл: source/main/lib/orm/fields/objectfield.php:614

