knp-components icon indicating copy to clipboard operation
knp-components copied to clipboard

Error while filtering

Open Stumpftopf opened this issue 7 years ago • 0 comments

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 )

Stumpftopf avatar Aug 13 '18 13:08 Stumpftopf