From df0e3991b6470fdbfc5ad0b796b8a794e8de25d3 Mon Sep 17 00:00:00 2001 From: tacman Date: Fri, 8 Jan 2016 08:19:44 -0500 Subject: [PATCH] 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 --- Resources/views/Collector/propel.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Collector/propel.html.twig b/Resources/views/Collector/propel.html.twig index 1a4c1cf..966e88b 100644 --- a/Resources/views/Collector/propel.html.twig +++ b/Resources/views/Collector/propel.html.twig @@ -112,7 +112,7 @@ - {{ query.sql|format_sql }} + {{ query.sql|format_sql|raw }} {% if app.request.query.has('query') and app.request.query.get('query') == i %}
{% render controller('PropelBundle:Panel:explain', {