title: Doctrine - How to print out the real sql, not just the prepared statement?
body: <p>We're using Doctrine, a PHP ORM. I am creating a query like this:</p>
  
  <pre><code>$q = Doctrine_Query::create()-&gt;select('id')-&gt;from('MyTable');
  </code></pre>
  
  <p>and then in the function I'm adding in various where clauses and things as appropriate, like this</p>
  
  <pre><code>$q-&gt;where('normalisedname = ? OR name = ?', array($string, $originalString));
  </code></pre>
  
  <p>Later on, before <code>execute()</code>-ing that query object, I want to print out the raw SQL in order to examine it, and do this:</p>
  
  <pre><code>$q-&gt;getSQLQuery();
  </code></pre>
  
  <p>However that only prints out the prepared statement, not the full query. I want to see what it is sending to the MySQL, but instead it is printing out a prepared statement, including <code>?</code>'s. Is there some way to see the 'full' query?</p>