title: How to get all the queries executed by Doctrine?
body: <p>I'm creating a console command for my bundle with Symfony 2. This command execute several request to database (Mysql). In order to debug my command I need to know how much SQL query has been executed during the command execution. And if it's possible, show these requests (like the Symfony profiler do)</p>
  <p>I have the same problem with AJAX requests. When I make an AJAX request, I can't know how much query have been executed during the request.</p>