Closed yurtesen closed 6 years ago
Can you please use git bisect
to find the offending commit?
It is because #728. ProxyQuery::addOrderedColumns
should skip columns that have already been added to the SELECT as IDENTITY(column)
. I will try to provide a patch this weekend.
Thanks for the quick response :)
e9e3a5c8135177e7946d2872bc6bcbf5d77dff7f is the first bad commit
commit e9e3a5c8135177e7946d2872bc6bcbf5d77dff7f
Author: Dariusz Markowicz <dmarkowicz77@gmail.com>
Date: Mon Sep 25 07:54:07 2017 +0200
Fix sorting by multiple columns in PostgreSQL and MySQL 5.7 (#728)
Adapt the getFixedQueryBuilder function to be compatible with PostgreSQL and MySQL 5.7 with ONLY_FULL_GROUP_BY mode. For any orderBy clause defined directly in the dqlParts, we add a select entry in the query.
:040000 040000 7813e3f71d57df5b8eeca760fc18a065bc2ff131 a59ded98674ff8dfc7cd49bc336e46d1f7bd07d3 M Datagrid
:040000 040000 d0d01e00dabd54d2a087f1270425d94848dc4b22 c1cabfaa5f349469e32a0c639f13a51a85d05686 M Tests
:100644 100644 9ded7cfcf53271a9d6c1ac74ad81963490738b04 6bfc72eab2325bfa08dfd1b0c8bb6d35d4469c6a M composer.json
Environment
Sonata packages
Symfony packages
PHP version
Subject
I have a simple table with composite key which is consisting of relations to 2 other tables
Admin class is simple:
In services.yml the definition is as:
Everything was great with v3.1.7 release but with v3.2.0 I am getting an error message about
Invalid PathExpression
when I go to table listing in SonataAdminBundleSteps to reproduce
Create a table with composite keys with ManyToOne relation. If I add a separate ID column, things work normally.
Expected results
List of elements would be shown
Actual results