doctrine/orm · error · InvalidArgumentException
Filter '%s' is not enabled.
Error message
Filter '%s' is not enabled.
What it means
Error "Filter '%s' is not enabled." thrown in doctrine/orm.
Source
Thrown at src/Query/FilterCollection.php:189
unset($this->suspendedFilters[$name]);
// Keep the enabled filters sorted for the hash
ksort($this->enabledFilters);
$this->setFiltersStateDirty();
return $this->enabledFilters[$name];
}
/**
* Gets an enabled filter from the collection.
*
* @throws InvalidArgumentException If the filter is not enabled.
*/
public function getFilter(string $name): SQLFilter
{
if (! $this->isEnabled($name)) {
throw new InvalidArgumentException("Filter '" . $name . "' is not enabled.");
}
return $this->enabledFilters[$name];
}
/**
* Checks whether filter with given name is defined.
*/
public function has(string $name): bool
{
return $this->config->getFilterClassName($name) !== null;
}
/**
* Checks if a filter is enabled.
*/
public function isEnabled(string $name): bool
{View on GitHub (pinned to d9b9ff7301)
When it happens
Trigger: Thrown at src/Query/FilterCollection.php:189 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of doctrine/orm@d9b9ff7301 (2026-08-21).
Data as JSON: /api/errors/2ba5481a17bc070a.
Report an issue: GitHub.