StorageStrategy::unbindItems

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. StorageStrategy
  4. unbindItems
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/StorageStrategy.php
  • Класс: Bitrix\Crm\Relation\StorageStrategy
  • Вызов: StorageStrategy::unbindItems
public function unbindItems(ItemIdentifier $parent, ItemIdentifier $child): Result
{
	if (!$this->areItemsBound($parent, $child))
	{
		return (new Result())->addError(new Error(
				'The items are not bound',
				RelationManager::ERROR_CODE_UNBIND_ITEMS_ITEMS_NOT_BOUND
			));
	}

	return $this->deleteBinding($parent, $child);
}

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