• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/fields/relations/onetomany.php
  • Класс: BitrixMainORMFieldsRelationsOneToMany
  • Вызов: OneToMany::__construct
public function __construct($name, $referenceEntity, $referenceName)
{
	$this->referenceName = $referenceName;

	if ($referenceEntity instanceof Entity)
	{
		$this->refEntity = $referenceEntity;
		$this->refEntityName = $referenceEntity->getFullName();
	}
	else
	{
		// this one could be without leading backslash and/or with Table-postfix
		$this->refEntityName = Entity::normalizeName($referenceEntity);
	}

	parent::__construct($name);
}