Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
unsub.php
1<?php
9
10use Bitrix\Main;
12
31class UnsubTable extends Main\Entity\DataManager
32{
38 public static function getTableName()
39 {
40 return 'b_sender_posting_unsub';
41 }
42
48 public static function getMap()
49 {
50 return array(
51 'ID' => array(
52 'data_type' => 'integer',
53 'primary' => true,
54 'autocomplete' => true,
55 ),
56 'POSTING_ID' => array(
57 'data_type' => 'integer',
58 ),
59 'RECIPIENT_ID' => array(
60 'data_type' => 'integer',
61 ),
62 'DATE_INSERT' => array(
63 'data_type' => 'datetime',
64 'default_value' => new Main\Type\DateTime(),
65 ),
66 'POSTING' => array(
67 'data_type' => Model\PostingTable::class,
68 'reference' => array('=this.POSTING_ID' => 'ref.ID'),
69 ),
70 'POSTING_RECIPIENT' => array(
71 'data_type' => RecipientTable::class,
72 'reference' => array('=this.RECIPIENT_ID' => 'ref.ID'),
73 ),
74 );
75 }
76}