Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
customfields.php
1<?php
2
4
6
24class CustomFieldsTable extends Main\Entity\DataManager
25{
26 const ENTITY_TYPE_SHIPMENT = 'SHIPMENT';
27
28 public static function getTableName()
29 {
30 return 'b_sale_order_entities_custom_fields';
31 }
32
33 public static function getMap()
34 {
35 return [
36 'ID' => [
37 'data_type' => 'integer',
38 'primary' => true,
39 'autocomplete' => true
40 ],
41 'ENTITY_ID' => [
42 'data_type' => 'integer',
43 'required' => true
44 ],
45 'ENTITY_TYPE' => [
46 'data_type' => 'string',
47 'required' => true
48 ],
49 'ENTITY_REGISTRY_TYPE' => [
50 'data_type' => 'string',
51 'required' => true
52 ],
53 'FIELD' => [
54 'data_type' => 'string',
55 'required' => true
56 ],
57 ];
58 }
59}