From 19b29a8f376b2c170706f0248ba5cbcd5b07f0c7 Mon Sep 17 00:00:00 2001 From: Jacques Bodin-Hullin Date: Tue, 10 Nov 2020 14:06:50 +0100 Subject: [PATCH] Debug the backtrace of all SQL queries in dev This allows developer to follow the origin of an SQL request. Pretty cool for performance tuning! --- config/packages/dev/doctrine.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 config/packages/dev/doctrine.yaml diff --git a/config/packages/dev/doctrine.yaml b/config/packages/dev/doctrine.yaml new file mode 100644 index 0000000000..5c75cc4aa4 --- /dev/null +++ b/config/packages/dev/doctrine.yaml @@ -0,0 +1,5 @@ +doctrine: + dbal: + connections: + default: + profiling_collect_backtrace: '%kernel.debug%'