• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/RelationManager.php
  • Класс: Bitrix\Crm\Relation\RelationManager
  • Вызов: RelationManager::getRelations
public function getRelations(int $entityTypeId): Relation\Collection
{
	if (isset($this->relationsCache[$entityTypeId]))
	{
		return $this->relationsCache[$entityTypeId];
	}

	$parentRelations = $this->getParentRelations($entityTypeId);
	$this->relationsCache[$entityTypeId] = $parentRelations->merge($this->getChildRelations($entityTypeId));

	return $this->relationsCache[$entityTypeId];
}