diff --git a/README.md b/README.md index 25ffc55..597fc0b 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,6 @@ You can also run Tania in production mode (on your server) by referring to this Done! You can start to use Tania. - -## Installation notes - -If you use MySQL 5.7, you should disable `ONLY_FULL_GROUP_BY`. You can refer to this [StackOverflow discussion](https://stackoverflow.com/questions/23921117/disable-only-full-group-by). - ## Questions and issues You can use [the issue tracker of Tania](https://github.com/tanibox/tania/issues) for bug reporting, feature request, and general feedback. diff --git a/app/config/config.yml b/app/config/config.yml index f0ec4cb..f9471fb 100644 --- a/app/config/config.yml +++ b/app/config/config.yml @@ -55,6 +55,8 @@ doctrine: # 2. Uncomment database_path in parameters.yml.dist # 3. Uncomment next line: #path: '%database_path%' + options: + 1002: "SET sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''))" orm: auto_generate_proxy_classes: '%kernel.debug%'