title: How do I view a SQL Statement in Phalconphp?
body: <p>I want to view the SQL statement that is about to be executed below :</p>
  
  <pre><code>&lt;?php
  
   //Deleting existing robot
   $success = $connection-&gt;delete(
       "robots",
       "id = 101"
   );
  
   //Next SQL sentence is generated
   DELETE FROM `robots` WHERE `id` = 101
  </code></pre>
  
  <p>How can I add some kind of listener or just plain var_dump the select query that is about to generated by the $connection->delete </p>
  
  <p>Thanks</p>