EventConnection::deleteEntity

  1. Bitrix24 API (v. 23.675.0)
  2. calendar
  3. EventConnection
  4. deleteEntity
  • Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/lib/core/mappers/eventconnection.php
  • Класс: BitrixCalendarCoreMappersEventConnection
  • Вызов: EventConnection::deleteEntity
protected function deleteEntity(
	CoreBaseEntityInterface $entity,
	array $params = ['softDelete' => true]
): ?CoreBaseEntityInterface
{
//		if (!empty($params['softDelete']))
//		{
//			$entity->setActive(false);
//			return $this->updateEntity($entity, $params);
//		}

	$result = EventConnectionTable::delete($entity->getId());

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

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

Добавить комментарий