-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while filtering #449
Comments
Hello, If you do not plan to have multiple expressions in your ->andWhere($qb->expr()->orX(
$qb->expr()->eq('e.vertreter', ':userid'),
$qb->expr()->isNull('e.vertreter'),
$qb->expr()->eq('v.proxy', ':userid')
)) |
Hey @nicolasmure ! This is not the issue, both issues in the |
push |
Hello, Do you mind to make a repository having this bug so we can investigate on this ? Thank you ;) |
Please follow related issue in knp-components |
Type error: Argument 1 passed to Knp\Component\Pager\Event\Subscriber\Filtration\Doctrine\ORM\Query\WhereWalker::expressionContainsFilter() must be an instance of Doctrine\ORM\Query\AST\ConditionalExpression, instance of Doctrine\ORM\Query\AST\ConditionalTerm given, called in /vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Filtration/Doctrine/ORM/Query/WhereWalker.php on line 192
This error occurs, when the query is built with the query builder. If no filter is specified it works like a charm.
An example of the filter params:
?filterField=e.name&filterValue=example
Querybuilder
(It works when the between is commented out. After I comment this line in, the error above occurs. The Between statement is not the problem, it also occurs with a simple eq)
The text was updated successfully, but these errors were encountered: