Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
storetable.php
1<?php
10
15
35{
36 public static function getTableName()
37 {
38 return '(
39 (SELECT 33 AS ID, "Store 33" AS ADDRESS)
40 UNION
41 (SELECT 34 AS ID, "Store 34" AS ADDRESS)
42 )';
43 }
44
45 public static function getMap()
46 {
47 return [
48 (new IntegerField('ID'))
49 ->configurePrimary()
50 ->configureAutocomplete(),
51
52 (new StringField('ADDRESS')),
53
54 (new OneToMany('BOOK_ITEMS', StoreBookTable::class, 'STORE'))
55 ];
56 }
57}