Skip to content

Commit 13e0bd5

Browse files
authored
Add doctrine configuration with default value
This allows developer to follow the origin of an SQL request. Pretty cool for performance tuning!
1 parent 4b35892 commit 13e0bd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/packages/doctrine.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ doctrine:
1010
driver: 'pdo_mysql'
1111
server_version: '5.7'
1212
charset: UTF8
13-
1413
url: '%env(resolve:DATABASE_URL)%'
14+
connections:
15+
default:
16+
# Turn this on if you want to profile the origin of an SQL request during development
17+
profiling_collect_backtrace: false
1518
orm:
1619
auto_generate_proxy_classes: '%kernel.debug%'
1720
auto_mapping: true

0 commit comments

Comments
 (0)