• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/fields/relations/manytomany.php
  • Класс: BitrixMainORMFieldsRelationsManyToMany
  • Вызов: ManyToMany::__construct
public function __construct($name, $referenceEntity)
{
	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);
}