{% extends app.request.isXmlHttpRequest ? '@WebProfiler/Profiler/ajax_layout.html.twig' : '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% if collector.querycount > 0 or collector.invalidEntityCount > 0 %} {% 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 %} {% 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 %} {% endset %} {% set text %} {% if collector.cacheEnabled %} {% else %} {% endif %} {% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status|default('') }) }} {% endif %} {% endblock %} {% block menu %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% if profiler_markup_version == 1 %} Doctrine {{ collector.querycount }} {{ '%0.0f'|format(collector.time * 1000) }} ms {% else %} {{ include('@Doctrine/Collector/icon.svg') }} Doctrine {% if collector.invalidEntityCount %} {{ collector.invalidEntityCount }} {% endif %} {% endif %} {% endblock %} {% block panel %} {% set profiler_markup_version = profiler_markup_version|default(1) %} {% 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 %} {{ block('queries') }} {% endif %} {% endblock %} {% block queries %} {% if profiler_markup_version > 1 %}No database queries were performed.
Time▼ | Count | {% else %}#▲ | Time | {% endif %}Info |
---|---|---|---|---|
{{ '%0.2f'|format(query.executionMS * 1000) }} ms ({{ '%0.2f'|format(query.executionPercent) }}%) |
{{ query.count }} | {% else %}{{ loop.index }} | {{ '%0.2f'|format(query.executionMS * 1000) }} ms | {% endif %}
{{ query.sql|doctrine_pretty_query(highlight_only = true) }}
Parameters: {{ profiler_dump(query.params) }}
{% if query.explainable %}
{% endif %}
|
There are no configured database connections.
There are no configured entity managers.
Second Level Cache is not enabled.
Second level cache information is not available.
No loaded entities.
Class | Mapping errors |
---|---|
{{ class }} |
{% if contains_errors %}
|