add raw filter so sql is formatted
If autoescape is on, then the SQL HTML is displayed instead of formatted sql. This will allow the Symfony debug toolbar to display formatted SQL regardless of the autoescape settings. https://github.com/propelorm/PropelBundle/issues/380
This commit is contained in:
parent
ead5be068e
commit
df0e3991b6
|
@ -112,7 +112,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a name="propel-query-{{ i }}" ></a>
|
<a name="propel-query-{{ i }}" ></a>
|
||||||
<code>{{ query.sql|format_sql }}</code>
|
<code>{{ query.sql|format_sql|raw }}</code>
|
||||||
{% if app.request.query.has('query') and app.request.query.get('query') == i %}
|
{% if app.request.query.has('query') and app.request.query.get('query') == i %}
|
||||||
<div class="SQLExplain">
|
<div class="SQLExplain">
|
||||||
{% render controller('PropelBundle:Panel:explain', {
|
{% render controller('PropelBundle:Panel:explain', {
|
||||||
|
|
Loading…
Reference in a new issue