RelationManager::getRelations

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. RelationManager
  4. getRelations
  • Модуль: 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];
}

Добавить комментарий