snipt

Ctrl+h for KB shortcuts

PHP

Symfony 1.x : Show last executed query with Propel

1
2
3
<?php 

echo  Propel::getConnection()->getLastExecutedQuery();
https://snipt.net/embed/9135163b3940f8eacccd4f6e199c003b/
/raw/9135163b3940f8eacccd4f6e199c003b/
9135163b3940f8eacccd4f6e199c003b
php
PHP
3
2019-07-29T17:51:24
True
False
True
Sep 05, 2012 at 04:14 AM
/api/public/snipt/46708/
symfony-1x-show-last-executed-query-with-propel
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?php</span> </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a><span class="k">echo</span> <span class="nx">Propel</span><span class="o">::</span><span class="na">getConnection</span><span class="p">()</span><span class="o">-&gt;</span><span class="na">getLastExecutedQuery</span><span class="p">();</span> </span></pre></div> </td></tr></table>
Propel, Symfony