-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Sort in YML or Interface suddenly causes SQL error #1858
Comments
Thanks for reporting this ... but I can't reproduce it!! 😱 Using the EasyAdmin Demo application with 1.17.4 works as expected. It's strange that none of our tests have caught this bug. If anyone else is suffering this issue, could you please create a reproducer? Thanks! |
@javiereguiluz is there anything more I can provide to help out? It's interesting because it works OK on my Local but not on my production server. |
Hello, I had same issue as @iamromeo with a 5.7 mysql version. I fixed problem by disabling ONLY_FULL_GROUP_BY in mysql mode. |
I can confirm that my live server used mysql 5.7
|
@artgris how can I disable ONLY_FULL_GROUP_BY ? |
@iamromeo this command should work, according to StackOverflow: SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY','')); |
@iamromeo , @javiereguiluz command works perfectly 👍 |
@javiereguiluz yes command worked great - no issue at this point. Have you by any chance found why this might was an issue? |
Same here : happened when I add sort on a DATETIME field |
I've found this Doctrine issue: doctrine/orm#5622 which was fixed as a bug in doctrine/orm#6143 and probably released in their 2.5.7 version https://github.com/doctrine/doctrine2/releases/tag/v2.5.7. So, let's close this as a Doctrine bug that can be solved by upgrading the doctrine2 dependency. |
I actually have doctrine/orm 2.5.11 with mysql 5.7.19, I updated EasyAdminBundle from 1.17.3 to 1.17.4 (nothing else) and since that, I have the same fatal error when I'm trying to sort a list of entities :
Reverting EasyAdminBundle to 1.17.3 fixed the problem. |
Easy Admin version: version1.17.4
Symfony version: 3.3.9
Note: All was working OK until today in the morning (when I run composer install again and the last was yesteday)
Now when I am clicking on any sorting arrow or if I have
list: sort: ['updateDate','DESC'] (or anything else)
I get this error:
The text was updated successfully, but these errors were encountered: