Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
basketreservationhistorytable.php
1<?php
2
4
12
30{
31 public static function getTableName()
32 {
33 return 'b_sale_basket_reservation_history';
34 }
35
36 public static function getMap()
37 {
38 return [
39 (new IntegerField('ID'))
40 ->configurePrimary()
41 ->configureAutocomplete()
42 ,
43 (new IntegerField('RESERVATION_ID'))
44 ->configureRequired()
45 ,
46 (new DatetimeField('DATE_RESERVE'))
47 ->configureDefaultValue(new DateTime())
48 ->configureRequired()
49 ,
50 (new FloatField('QUANTITY'))
51 ->configureRequired()
52 ,
53 // refs
54 new Reference('RESERVATION', BasketReservationTable::class, Join::on('this.RESERVATION_ID', 'ref.ID')),
55 ];
56 }
57}