Skip to content

Instantly share code, notes, and snippets.

@wapcrazut
Created November 24, 2019 21:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wapcrazut/90656fc2f0be83cc7a401d4f335fb6f2 to your computer and use it in GitHub Desktop.
Save wapcrazut/90656fc2f0be83cc7a401d4f335fb6f2 to your computer and use it in GitHub Desktop.
Disable SQL ONLY_FULL_GROUP_BY in Doctrine (Symfony)
doctrine:
dbal:
driver: pdo_mysql
host: "%database_host%"
port: "%database_port%"
dbname: "%database_name%"
user: "%database_user%"
password: "%database_password%"
charset: UTF8
options:
1002: 'SET sql_mode=(SELECT REPLACE(@@sql_mode, "ONLY_FULL_GROUP_BY", ""))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment