• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/model/locationnametable.php
  • Класс: BitrixLocationModelLocationNameTable
  • Вызов: LocationNameTable::getMap
static function getMap()
{
	return [
		(new FieldsIntegerField('LOCATION_ID'))
			->configurePrimary(true)
			->configureRequired(true),

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

		(new FieldsStringField('NAME'))
			->configureRequired(true)
			->addValidator(new MainORMFieldsValidatorsLengthValidator(1, 1000)),

		(new FieldsStringField('NAME_NORMALIZED'))
			->addValidator(new MainORMFieldsValidatorsLengthValidator(null, 1000)),

		// Ref

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