Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue on Join order and MySQL 5.7+ #395
I'm using knp paginator
then we use this parameter:
I am using MySQL 5.7.10
+1, this paginator component is manipulating the query in a way that is not compatible with MySQL 5.7+.
Example situation: Entities "Product" and "Taxonomy" are linked by bridge entity "TaxonomyToProduct", because a custom sort order is needed. This sort order is an integer inside the "TaxonomyToProduct".
Then when it comes to displaying products in a taxonomy one would use the following repository function:
This works fine when being called by a controller. However the paginator is doing some DISTINCT stuff around the query preventing it from working with the sort order. I've also tried sorting products by their created date via
SQL query from repository function's
SQL query after the paginator fiddled with it:
For some reason the paginator adding an extra
Oh yeah -- As per #358 I've also tried setting options "distinct" to false, and also removed the
We've also always been using