• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/fields/field.php
  • Класс: Bitrix\Main\ORM\Fields\Field
  • Вызов: Field::setEntity
public function setEntity(Entity $entity)
{
	if ($this->entity !== null)
	{
		throw new SystemException(sprintf('Field "%s" already has entity', $this->name));
	}

	$this->entity = $entity;
}