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:
tacman 2016-01-08 08:19:44 -05:00
parent ead5be068e
commit df0e3991b6

View file

@ -112,7 +112,7 @@
<tr>
<td>
<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 %}
<div class="SQLExplain">
{% render controller('PropelBundle:Panel:explain', {