Beside the default Symfony devtools that provides detailed information about your queries, you may want to retrieve this information in order to display it to your users. Inside a custom DebugStack object, you'll find information like the time in milliseconds that took the execution of a query, the SQL query itself and some more parameters.
To get this information, you need to enable a SQLLogger into the doctrine configuration in your controllers :
Using twig (or var_dump
if you're not using twig) the dump function should output an object with the following structure :
Have fun
0 Comments