• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/orm/objectify/collection.php
  • Класс: BitrixMainORMObjectifyCollection
  • Вызов: Collection::remove
public function remove(EntityObject $object)
{
	// check object class
	if (!($object instanceof $this->_objectClass))
	{
		throw new ArgumentException(sprintf(
			'Invalid object class %s for %s collection, expected "%s".',
			get_class($object), get_class($this), $this->_objectClass
		));
	}

	// ignore deleted objects
	if ($object->state === State::DELETED)
	{
		return;
	}

	$srPrimary = $this->sysGetPrimaryKey($object);
	$this->sysRemove($srPrimary);
}