• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/repository/addressrepository.php
  • Класс: BitrixLocationRepositoryAddressRepository
  • Вызов: AddressRepository::saveLinkCollection
protected function saveLinkCollection(EntityAddress $address): BitrixMainORMDataResult
{
	if($address->getId() <= 0)
	{
		throw new ArgumentNullException('Address Id');
	}

	$this->linkTableClass::deleteByAddressId($address->getId());
	$collectionLinks = EntityAddressConverterOrmConverter::convertLinksToOrm($address);
	return $collectionLinks->save();
}