• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Reservation/Entity/Deal.php
  • Класс: Bitrix\Crm\Reservation\Entity\Deal
  • Вызов: Deal::checkLoadedEntity
protected function checkLoadedEntity(): Main\Result
{
	$result = new Main\Result();

	$fields = \CCrmDeal::GetByID($this->ownerId, false);
	if (!$fields)
	{
		$result->addError(
			new Main\Error("Deal with id {$this->ownerId} not found")
		);
	}

	return $result;
}