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

	if(!$res)
	{
		$result = null;
	}
	else
	{
		$result = EntityAddressConverterOrmConverter::convertFromOrm($res);
	}

	return $result;
}