How to see what code executed a Doctrine query
4 November 2025 (Updated 4 November 2025)
Use the profiling_collect_backtrace: true option like so:

Now, you should see a View query backtrace button on the profiler:

Links
Tagged:
Doctrine recipes