• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Relation/Collection.php
  • Класс: Bitrix\Crm\Relation\Collection
  • Вызов: Collection::remove
public function remove(RelationIdentifier $identifier): Collection
{
	$existingRelation = $this->get($identifier);
	if ($existingRelation)
	{
		/** @var int $index */
		$index = array_search($existingRelation, $this->relations, true);
		unset($this->relations[$index]);
	}

	return $this;
}