RelationManager::bindItems

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

	return $relation->bindItems($parent, $child);
}

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