Is there any class / method in Doctrine 2.1 that counts amount of queries done by particular entity manager (or sth else?)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think so. That would require some kind of persistence to store the number of times the queries are executed. You could always enable the log (disabled by default on production), use a custom logger like Monolog and parse the logs afterwards, or use a tool like NewRelic that gives you real-time and historical data of things like database queries (among a lot of other useful features).