Doctrine – How to print out the real sql, not just the prepared statement?

We’re using Doctrine, a PHP ORM. I am creating a query like this: $q = Doctrine_Query::create()->select(‘id’)->from(‘MyTable’); and then in the function I’m adding in various where clauses and things as appropriate, like this $q->where(‘normalisedname = ? OR name = ?’, array($string, $originalString)); Later on, before execute()-ing that query object, I want to print out the … Read more