You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using the knp_pagination_sortable function in Twig template, it throws the following exception due to an inconsistency in Doctrine.
Fatal 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 in /app/vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Sortable/Doctrine/ORM/Query/OrderByWalker.php on line 37
I saw your tutorial on Symfony Pagination and we suggested the above fix so that the next viewers won't have any issues with the KnpPaginatorBundle anymore.
While using the
knp_pagination_sortable
function in Twig template, it throws the following exception due to an inconsistency in Doctrine.Here is a little project with a simple movie CRUD where the issue has been reproduced: KnpLabs/knp_pagination_sortable_issue
The text was updated successfully, but these errors were encountered: