Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
DebuggerSessionDocumentTable.php
1<?php
2
4
22{
23 public static function getTableName()
24 {
25 return 'b_bp_debugger_session_document';
26 }
27
28 public static function getObjectClass()
29 {
30 return \Bitrix\Bizproc\Debugger\Session\Document::class;
31 }
32
33 public static function getMap()
34 {
35 return [
36 'ID' => [
37 'data_type' => 'integer',
38 'primary' => true,
39 'autocomplete' => true,
40 ],
41 'SESSION_ID' => [
42 'data_type' => 'string',
43 'required' => true,
44 ],
45 new \Bitrix\Main\ORM\Fields\Relations\Reference(
46 'SESSION',
47 DebuggerSessionTable::class,
48 \Bitrix\Main\ORM\Query\Join::on('this.SESSION_ID', 'ref.ID')
49 ),
50 'DOCUMENT_ID' => [
51 'data_type' => 'string',
52 'required' => true,
53 ],
54 'DATE_EXPIRE' => [
55 'data_type' => 'datetime',
56 'default_value' => (new \Bitrix\Main\Type\DateTime())->add('1 MINUTE'),
57 ]
58 ];
59 }
60}