• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/incomingmanager.php
  • Класс: BitrixCalendarSyncManagersIncomingManager
  • Вызов: IncomingManager::createSectionConnection
private function createSectionConnection(
	Section $section,
	string $vendorId,
	string $vendorVersion = null,
	bool $isPrimary = null
): ?SectionConnection
{
	$entity = (new SectionConnection())
		->setSection($section)
		->setConnection($this->connection)
		->setVendorSectionId($vendorId)
		->setVersionId($vendorVersion)
		->setPrimary($isPrimary ?? false)
	;
	/** @var SectionConnection */
	$result = (new CoreMappersSectionConnection())->create($entity);

	return $result;
}