• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/rooms/manager.php
  • Класс: BitrixCalendarRoomsManager
  • Вызов: Manager::setEventIdForLocation
static function setEventIdForLocation(int $id): void
{
	$event = EventTable::query()
		->setSelect(['LOCATION'])
		->where('ID', $id)
		->exec()->fetch()
	;

	if (!empty($event['LOCATION']))
	{
		$location = Util::parseLocation($event['LOCATION']);
		if ($location['room_id'] && $location['room_event_id'])
		{
			EventTable::update($location['room_event_id'], [
					'PARENT_ID' => $id,
			]);
		}
	}
}