/** * Detach field. * @throws SystemException 'ERR_DEV_NO_CONTROL_TO_DETACH' * @param FilterField $field filter field. */ public function detachField(FilterField $field) { if (!isset($this->fields[$field->getIndex()])) { throw new SystemException('ERR_DEV_NO_CONTROL_TO_DETACH', SystemException::ERR_DEVELOPER); } unset($this->fields[$field->getIndex()]); }