- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/activityelement.php
- Класс: Bitrix\Crm\ActivityElementTable
- Вызов: ActivityElementTable::getMap
static function getMap()
{
return array(
'ACTIVITY_ID' => array(
'data_type' => 'integer',
'primary' => true,
),
'ACTIVITY' => array(
'data_type' => '\Bitrix\Crm\ActivityTable',
'reference' => array('=this.ACTIVITY_ID' => 'ref.ID')
),
'STORAGE_TYPE_ID' => array(
'data_type' => 'enum',
'primary' => true,
'values' => array(
Crm\Integration\StorageType::Disk,
Crm\Integration\StorageType::File,
Crm\Integration\StorageType::WebDav,
Crm\Integration\StorageType::Undefined,
)
),
'ELEMENT_ID' => array(
'data_type' => 'integer',
'primary' => true,
),
/*(new Entity\ReferenceField(
'FILE',
\Bitrix\Main\FileTable::class,
Entity\Query\Join::on('this.ELEMENT_ID', 'ref.ID')->where('this.STORAGE_TYPE_ID', Crm\Integration\StorageType::File),
array('join_type' => 'INNER')
)),*/
);
}