{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block toolbar %} {# the web debug toolbar content #} {% set icon %} Propel {{ collector.querycount }} {% endset %} {% set text %}
DB Queries {{ collector.querycount }}
Query time {{ '%0.2f'|format(collector.time * 1000) }} ms
{% endset %} {% include 'WebProfilerBundle:Profiler:toolbar_item.html.twig' with { 'link': profiler_url } %} {% endblock %} {% block menu %} {# the menu content #} Propel {{ collector.querycount }} {{ '%0.0f'|format(collector.time * 1000) }} ms {% endblock %} {% block panel %} {# the panel content #}

Queries

{% if not collector.querycount %} {% else %} {% for i, query in collector.queries %} {% endfor %} {% endif %}
SQL queries
No queries.
{{ query.sql|format_sql|raw }} {% if app.request.query.has('query') and app.request.query.get('query') == i %}
{% render controller('PropelBundle:Panel:explain', { 'token': token, 'panel': 'propel', 'query': app.request.query.get('query'), 'connection': app.request.query.get('connection') }) %}
{% endif %}
Time: {{ query.time }} - Memory: {{ query.memory|format_memory }} - Connection: {{ query.connection }} - Stacktrace {% if app.request.query.get('query', -1) != i %} - Explain the query {% endif %}
{% for trace in query.stackTrace %}
{{ trace }}
{% endfor %}
{% render controller('PropelBundle:Panel:configuration') %} {% endblock %}