• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/orm/elementv2table.php
  • Класс: BitrixIblockORMElementV2Table
  • Вызов: ElementV2Table::onAfterAdd
static function onAfterAdd(Event $event)
{
	parent::onAfterAdd($event);

	$id = $event->getParameter('id');
	$table = static::getEntity()->getSingleValueTableName();
	$connection = static::getEntity()->getConnection();

	// create single value row
	$connection->add($table, ['IBLOCK_ELEMENT_ID' => $id]);
}