{% extends app.request.isXmlHttpRequest ? 'WebProfilerBundle:Profiler:ajax_layout.html.twig' : 'WebProfilerBundle:Profiler:layout.html.twig' %} {% block toolbar %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% set icon %} {% if profiler_markup_version == 1 %}
{% if collector.querycount > 0 %} {% endif %} {% if collector.invalidEntityCount > 0 %} {% endif %} {% else %} {% if collector.querycount > 0 or collector.invalidEntityCount > 0 %} {% set status = collector.invalidEntityCount > 0 ? 'red' : collector.querycount > 50 ? 'yellow' : '' %} {{ include('@Doctrine/Collector/icon.svg') }} {% if collector.querycount == 0 and collector.invalidEntityCount > 0 %} {% else %} {% endif %} {% endif %} {% endif %} {% endset %} {% set text %} {% if collector.cacheEnabled %} {% else %} {% endif %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status|default('') }) }} {% endblock %} {% block menu %} Doctrine {{ collector.querycount }} {{ '%0.0f'|format(collector.time * 1000) }} ms {% endblock %} {% block panel %} {% if 'explain' == page %} {{ render(controller('DoctrineBundle:Profiler:explain', { 'token': token, 'panel': 'db', 'connectionName': app.request.query.get('connection'), 'query': app.request.query.get('query') })) }} {% else %}No queries.
{% else %}
#▲ | Time | Info |
---|---|---|
{{ loop.index }} | {{ '%0.2f'|format(query.executionMS * 1000) }} ms |
{{ query.sql|doctrine_minify_query }}
Parameters: {{ query.params|yaml_encode }} [Display runnable query] {% if query.explainable %} [ Explain query ] {% else %} This query cannot be explained {% endif %} {% if query.explainable %} {% endif %} |
No connections.
{% endif %}No entity managers.
{% endif %}No cache.
{% endif %}No loaded entities.
{% else %}Class | Mapping errors |
---|---|
{{ class }} |
{% if collector.mappingErrors[manager] is defined and collector.mappingErrors[manager][class] is defined %}
|