• Модуль: documentgenerator
  • Путь к файлу: ~/bitrix/modules/documentgenerator/lib/model/documentbindingtable.php
  • Класс: BitrixDocumentGeneratorModelDocumentBindingTable
  • Вызов: DocumentBindingTable::getMap
static function getMap(): array
{
	return [
		(new IntegerField('ID'))
			->configurePrimary(),
		(new IntegerField('DOCUMENT_ID'))
			->configureRequired(),
		(new StringField('ENTITY_NAME'))
			->configureRequired(),
		(new IntegerField('ENTITY_ID'))
			->configureRequired(),
		(new Reference(
			'DOCUMENT',
			DocumentTable::class,
			[
				'=this.DOCUMENT_ID' => 'ref.ID'
			]
		)),
	];
}