• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/repository/addressrepository.php
  • Класс: BitrixLocationRepositoryAddressRepository
  • Вызов: AddressRepository::findByLinkedEntity
public function findByLinkedEntity(string $entityId, string $entityType): EntityAddressAddressCollection
{
	$res = $this->tableClass::getList([
		'select' => ['*', 'FIELDS', 'LOCATION', 'LOCATION.NAME', 'LOCATION.FIELDS', 'LINKS'],
		'filter' => [
			'=LINKS.ENTITY_ID' => $entityId,
			'=LINKS.ENTITY_TYPE' => $entityType
		]
	])->fetchCollection();

	return EntityAddressConverterOrmConverter::convertCollectionFromOrm($res);
}