- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/Relation/Registrar.php
- Класс: Bitrix\Crm\Relation\Registrar
- Вызов: Registrar::registerUnbind
public function registerUnbind(
ItemIdentifier $parent,
ItemIdentifier $child,
Context $context = null
): Result
{
[$parentObject, $childObject, $result] = $this->getTrackedObjects($parent, $child);
if (!$result->isSuccess())
{
$result->addError(new Error('Could not get ' . TrackedObject::class . ' for unbind registration'));
return $result;
}
return $this->history->registerUnbind($parentObject, $childObject, $context);
}