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

	$result = SectionTable::update(
		$entity->getId(),
		$arrayEntity
	);

	if ($result->isSuccess())
	{
		$this->sendPushEdit($entity->getOwner()->getId());
		return $entity->setDateModified(new CoreBaseDate());
	}

	throw new CoreBaseBaseException('Error of update section');
}