• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/report.php
  • Класс: BitrixReportVisualConstructorEntityReport
  • Вызов: Report::getMapReferenceAttributes
static function getMapReferenceAttributes()
{
	return array(
		'configurations' => array(
			'type' => Common::MANY_TO_MANY,
			'targetEntity' => Configuration::getClassName(),
			'join' => array(
				'tableClassName' => ReportConfigurationTable::getClassName(),
				'column' => array('REPORT' => array('id', 'REPORT_ID')),
				'inverseColumn' => array('CONFIGURATION_SETTING' => array('id', 'CONFIGURATION_ID'))
			),
		),
		'widget' => array(
			'type' => Common::MANY_TO_ONE,
			'targetEntity' => Widget::getClassName(),
			'inversedBy' => 'reports',
			'join' => array(
				'field' => array('widgetId', 'id')
			)
		),
	);
}