-
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
I have this error whn trying to use knp_paginator_sortable: Compile Error: Declaration of Knp\Component\Pager\Event\Subscriber\Sortable\Doctrine\ORM\Query\OrderByWalker::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $AST): string must be compatible with Doctrine\ORM\Query\TreeWalkerAdapter::walkSelectStatement(Doctrine\ORM\Query\AST\SelectStatement $selectStatement): void #796
Comments
Could you please help me fix this issue!! i am using Symfony 5.4 php 8.1 . Thank you! |
i am using this code in the twig: <th {% if cities.isSorted('f.cityCode') %} class="sorted" {% endif %}>{{ knp_pagination_sortable(cities, 'Ville'|trans, 'f.cityCode')|raw }} |
Doctrine version? |
doctrine/orm 3.2.1 |
doctrine/cache 2.2.0 Thanks! |
Try using knplabs/knp-paginator-bundle 6 |
I've developped the part that does the sorting using Javascript and it works fine. But this does not solve the issue . How do you "Try using knplabs/knp-paginator-bundle 6" ? |
@SGuirous you have that dependency in your composer.json, right? Edit the version constraint. |
"require": { then composer update -W and this is the error i get: Your requirements could not be resolved to an installable set of packages. Problem 1 |
So either you upgrade to Symfony 6 or you downgrade to Doctrine 2 |
As i said i have developped a JS alternative and i am happy with it. |
"but this doesn't solve the issue". Your words. |
Bug Report
Summary
Current behavior
How to reproduce
Expected behavior
The text was updated successfully, but these errors were encountered: