Skip to content

Commit

Permalink
Add doctrine configuration with default value
Browse files Browse the repository at this point in the history
This allows developer to follow the origin of an SQL request. Pretty cool for performance tuning!
  • Loading branch information
jacquesbh authored Nov 10, 2020
1 parent 4b35892 commit 13e0bd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ doctrine:
driver: 'pdo_mysql'
server_version: '5.7'
charset: UTF8

url: '%env(resolve:DATABASE_URL)%'
connections:
default:
# Turn this on if you want to profile the origin of an SQL request during development
profiling_collect_backtrace: false
orm:
auto_generate_proxy_classes: '%kernel.debug%'
auto_mapping: true
Expand Down

0 comments on commit 13e0bd5

Please sign in to comment.