• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/location/grouplocation.php
  • Класс: BitrixSaleLocationGroupLocationTable
  • Вызов: GroupLocationTable::getMap
static function getMap()
{
	return array(

		'LOCATION_ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'required' => true
		),

		'LOCATION_GROUP_ID' => array(
			'data_type' => 'integer',
			'primary' => true,
			'required' => true
		),

		// alias
		'GROUP_ID' => array(
			'data_type' => 'integer',
			'expression' => array(
				'%u',
				'LOCATION_GROUP_ID'
			)
		),

		// virtual
		'LOCATION' => array(
			'data_type' => 'BitrixSaleLocationLocation',
			'reference' => array(
				'=this.LOCATION_ID' => 'ref.ID'
			)
		),

		// alias
		'GROUP' => array(
			'data_type' => 'BitrixSaleLocationGroup',
			'reference' => array(
				'=this.LOCATION_GROUP_ID' => 'ref.ID'
			)
		),
	);
}