• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/fields/enumfield.php
  • Класс: BitrixMainORMFieldsEnumField
  • Вызов: EnumField::postInitialize
public function postInitialize()
{
	if (!is_array($this->values))
	{
		throw new SystemException(sprintf(
			'Parameter "values" for %s field in `%s` entity should be an array',
			$this->name, $this->entity->getDataClass()
		));
	}

	if (empty($this->values))
	{
		throw new SystemException(sprintf(
			'Required parameter "values" for %s field in `%s` entity is not found',
			$this->name, $this->entity->getDataClass()
		));
	}
}