I am using Doctrine and sometimes I’ve the feeling that it is doing much more things than what I am expecting, so I would like to have more information (and therefore more control) about what Doctrine is doing.
So, how I could count the total number of queries that Doctrine is doing?. It would be nice if I could also find the SQL statements that Doctrine is performing implicitly, (apart of the ones that I am creating).
Thank you in advance!
I suggest this wonderful article:
Find the section that’s headed “Profiling with Doctrine” This is specific for the use with a framework but you should figure out how to do it without the framework, it’s not hard