title: How do I view the parameters in a query?
body: <p>In order to debug my code I would like to see the explicit sql query that is executed.</p>
  
  <p>I create the query with <code>createQueryBuilder</code>, and the most explicit thing I achieved is having the raw query using:</p>
  
  <pre><code>$qb-&gt;getQuery()-&gt;getSQL();
  </code></pre>
  
  <p>The problem is that instead of parameters I see the holders (<code>?</code>).
  I found some solutions on the web but they are for 1.3 and 1.4, nothing for Symfony-2.</p>
  
  <p>Ideas? Thanks!</p>