title: Doctrine - how to get the SQL INSERT query, in the postSave() event?
body: <p>I would like to get the exact SQL INSERT query that Doctrine generates when an object's save() method is called.</p>
  
  <p>Preferably, I would like to get it in the postSave() event of the model and log it in a txt file.</p>
  
  <p>For instance:</p>
  
  <pre><code>&lt;?php 
  $user = new User(); // A Doctrine Model with timestampable behavior enabled
  $user-&gt;first_name = 'Manny';
  $user-&gt;last_name = 'Calavera';
  $user-&gt;save();
  ?&gt;
  </code></pre>
  
  <p>I want to get/log the following SQL query:</p>
  
  <pre><code>INSERT INTO user (first_name, last_name, created_at, updated_at) VALUES ('Manny', 'Calavera', '2010-08-03 12:00:00', '2010-08-03 12:00:00');
  </code></pre>
  
  <p>The background for needing this, is that I wish to mass-import later the data by parsing the txt file.</p>