• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/relation.php
  • Класс: Bitrix\Crm\Relation
  • Вызов: Relation::createPredefined
static function createPredefined(int $parentEntityTypeId, int $childEntityTypeId): Relation
{
	$settings =
		(new Relation\Settings())
			->setIsChildrenListEnabled(true)
			->setIsPredefined(true)
	;

	return new static(
		new RelationIdentifier($parentEntityTypeId, $childEntityTypeId),
		$settings
	);
}