Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DebuggerSessionTemplateShardsTable.php
1<?php
2
4
15
33{
34 public static function getTableName(): string
35 {
36 return 'b_bp_debugger_session_template_shards';
37 }
38
39 public static function getObjectClass(): string
40 {
41 return TemplateShards::class;
42 }
43
44 public static function getMap(): array
45 {
46 return [
47 (new Entity\IntegerField('ID'))
48 ->configurePrimary()
49 ->configureAutocomplete(),
50
51 (new IntegerField('TEMPLATE_ID'))
52 ->configureRequired(),
53 new Reference(
54 'TEMPLATE',
55 WorkflowTemplateTable::class,
56 Join::on('this.TEMPLATE_ID', 'ref.ID')
57 ),
58
59 (new ArrayField('SHARDS'))
60 ->configureSerializeCallback([WorkflowTemplateTable::class, 'toSerializedForm'])
61 ->configureUnserializeCallback([WorkflowTemplateTable::class, 'getFromSerializedForm']),
62 (new EnumField('TEMPLATE_TYPE'))
63 ->configureRequired()
65
66 (new DatetimeField('MODIFIED'))
67 ->configureRequired(),
68 ];
69 }
70}