Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
sourcetable.php
1<?php
2
4
7
27{
31 public static function getTableName()
32 {
33 return 'b_location_source';
34 }
35
39 public static function getMap()
40 {
41 return [
42 (new Fields\StringField('CODE'))
43 ->addValidator(new Main\ORM\Fields\Validators\LengthValidator(1, 15))
44 ->configurePrimary(true),
45 (new Fields\StringField('NAME'))
46 ->configureRequired(true)
47 ->addValidator(new Main\ORM\Fields\Validators\LengthValidator(1, 255)),
48 new Fields\TextField('CONFIG'),
49 ];
50 }
51}