• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/sectionconnection.php
  • Класс: BitrixCalendarCoreMappersSectionConnection
  • Вызов: SectionConnection::updateEntity
protected function updateEntity($entity, array $params = []): ?CoreBaseEntityInterface
{
	$data = $this->convertToArray($entity);

	$result = SectionConnectionTable::update($entity->getId(), $data);

	if ($result->isSuccess())
	{
		return $entity;
	}

	throw new BaseException('Error of update SectionConnection: '
		. implode('; ', $result->getErrorMessages()),
		400);
}