SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘cms-infoliv5.Rubriques.id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SQL Query:
SELECT Rubriques.id AS Rubriques__id, … , Rubriques.model AS Rubriques__model FROM rubriques Rubriques GROUP BY model
SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column ‘cms-infoliv5.Rubriques.id’ which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
SQL Query
SELECT Rubriques.id AS Rubriques__id, …, Rubriques.model AS Rubriques__model FROM rubriques Rubriques GROUP BY model
So you are using the Translate behavior… This makes things more complicated…
I have no app running currently with the Translate behaviour set up, but what kind of strategy are you using? Are you using EAV or Shadow Tables for translation?
I believe the faster solution for you would be to adjust your SQL mode and remove the only_full_group_by (which is default for MySQL as far as I remember)
The problem was that $rubriquesModels was used to create associations and from Cakephp 5.1.0 an exception is raised for association with duplicate names, I just now check with $table->associations()->has() before adding association.