Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
FileHashTable.php
1<?php
9
13
31{
32 public static function getTableName()
33 {
34 return 'b_file_hash';
35 }
36
37 public static function getMap()
38 {
39 return [
40 (new Fields\IntegerField("FILE_ID"))
41 ->configurePrimary(true),
42
43 (new Fields\IntegerField("FILE_SIZE")),
44
45 (new Fields\StringField("FILE_HASH")),
46
47 (new Fields\Relations\Reference(
48 'FILE',
49 \Bitrix\Main\FileTable::class,
50 Query\Join::on('this.FILE_ID', 'ref.ID')
51 ))
52 ->configureJoinType(Query\Join::TYPE_INNER),
53 ];
54 }
55}