title: print last executed query in controller cakephp 3
body: <p>suppose i have a query in cakephp 3</p>
  
  <pre><code>$post = $this-&gt;Posts-&gt;get($id, [
          'contain' =&gt; ['Postmeta']
      ]);
  </code></pre>
  
  <p>I want to print it like plain mysql query for example</p>
  
  <pre><code>SELECT * FROM posts....
  </code></pre>
  
  <p>can anyone please explain this how can i achieve this. Please answer it only in cakephp 3 environment. Is it possible to print it in controller as normal mysql query ? please do not mention queries.log file solution. beacause it is time  taking to open file and see the query after every executed query in queries.log file in that is look in cakephp style
  Thanks</p>