• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/StorageStrategy/Factory.php
  • Класс: Bitrix\Crm\Relation\StorageStrategy\Factory
  • Вызов: Factory::getChildElements
public function getChildElements(ItemIdentifier $parent, int $childEntityTypeId): array
{
	$items = $this->childFactory->getItems([
		'select' => [Item::FIELD_NAME_ID],
		'filter' => [
			'=' . $this->parentIdFieldName => $parent->getEntityId(),
		],
	]);

	$children = [];
	foreach ($items as $item)
	{
		$children[] = ItemIdentifier::createByItem($item);
	}

	return $children;
}