title: Symfony , get the real SQL requests executed by flush
body: <p>I'm curious to know if there's any method to get the SQL request executed by flush(), for example:</p>
  
  <pre><code>$manager = $this-&gt;getDoctrine()-&gt;getManager();
  $Person = new Person();
  $Person-&gt;setName("Wajdi");
  $Person-&gt;setAge(25);
  $manager-&gt;persist($Person);
  $manager-&gt;flush(); ///&lt;--------
  </code></pre>
  
  <p>I need to get something like that:</p>
  
  <pre><code>Insert into person("name","age")values("Wajdi",25);
  </code></pre>
  
  <p>Any ideas ? Thank you !!</p>