• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/model/addresstable.php
  • Класс: BitrixLocationModelAddressTable
  • Вызов: AddressTable::getMap
static function getMap()
{
	return array(
		(new FieldsIntegerField('ID'))
			->configurePrimary(true)
			->configureAutocomplete(true),

		new FieldsIntegerField('LOCATION_ID'),

		(new FieldsStringField('LANGUAGE_ID'))
			->configureRequired(true)
			->addValidator(new MainORMFieldsValidatorsLengthValidator(2, 2)),

		new FieldsFloatField('LATITUDE', ['scale' => 6]),
		new FieldsFloatField('LONGITUDE', ['scale' => 6]),

		(new FieldsRelationsOneToMany('FIELDS', AddressFieldTable::class, 'ADDRESS'))
			->configureJoinType('left'),

		(new FieldsRelationsOneToMany('LINKS', AddressLinkTable::class, 'ADDRESS'))
			->configureJoinType('left'),

		(new FieldsRelationsReference('LOCATION', LocationTable::class,
			Join::on('this.LOCATION_ID', 'ref.ID')))
			->configureJoinType('left')
	);
}