Skip to content
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 #205

Open
Stumpftopf opened this issue Aug 13, 2018 · 0 comments · May be fixed by #206
Open

Error while filtering #205

Stumpftopf opened this issue Aug 13, 2018 · 0 comments · May be fixed by #206

Comments

@Stumpftopf
Copy link

Stumpftopf commented Aug 13, 2018

On complex where statements the WhereWalker throws this error:
Catchable Fatal 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 /var/www/communalfm-symfony/vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Filtration/Doctrine/ORM/Query/WhereWalker.php on line 192 and defined

Exemple where statement:
WHERE :object MEMBER OF tdf.objects AND ( (oacc_obj_res.read = 1 AND oacc_obj_res.user = :user) OR oacc_obj_res.id IS NULL OR (aacc_obj_res.read = 1 AND aacc_obj_res.user = :user) OR aacc_obj_res.id IS NULL )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant