I have upgraded my system and have installed MySql 5.7.9 with php for a web application I am working on. I have a query that is dynamically created, and when run in older ve
If you have this error with Symfony using doctrine query builder, and if this error is caused by an orderBy :
Pay attention to select the column you want to groupBy, and use addGroupBy instead of groupBy :
select
groupBy
addGroupBy
$query = $this->createQueryBuilder('smth')->addGroupBy('smth.mycolumn');
Works on Symfony3 -