{"record":{"id":"2ba5481a17bc070a","repo":"doctrine/orm","slug":"filter-s-is-not-enabled","errorCode":null,"errorMessage":"Filter '%s' is not enabled.","messagePattern":"Filter '(.+?)' is not enabled\\.","errorType":"exception","errorClass":"InvalidArgumentException","httpStatus":null,"severity":"error","filePath":"src/Query/FilterCollection.php","lineNumber":189,"sourceCode":"        unset($this->suspendedFilters[$name]);\n\n        // Keep the enabled filters sorted for the hash\n        ksort($this->enabledFilters);\n\n        $this->setFiltersStateDirty();\n\n        return $this->enabledFilters[$name];\n    }\n\n    /**\n     * Gets an enabled filter from the collection.\n     *\n     * @throws InvalidArgumentException If the filter is not enabled.\n     */\n    public function getFilter(string $name): SQLFilter\n    {\n        if (! $this->isEnabled($name)) {\n            throw new InvalidArgumentException(\"Filter '\" . $name . \"' is not enabled.\");\n        }\n\n        return $this->enabledFilters[$name];\n    }\n\n    /**\n     * Checks whether filter with given name is defined.\n     */\n    public function has(string $name): bool\n    {\n        return $this->config->getFilterClassName($name) !== null;\n    }\n\n    /**\n     * Checks if a filter is enabled.\n     */\n    public function isEnabled(string $name): bool\n    {","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/doctrine/orm/blob/d9b9ff73016bf598ae07515f97289ce8074e97a5/src/Query/FilterCollection.php#L171-L207","documentation":"Error \"Filter '%s' is not enabled.\" thrown in doctrine/orm.","triggerScenarios":"Thrown at src/Query/FilterCollection.php:189 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9b9ff73016bf598ae07515f97289ce8074e97a5","analyzedAt":"2026-08-21T06:13:15.863Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}