var/cache/dev/twig/b7/b769feb760ff4ae3684f02913b149572.php line 53

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Doctrine/Collector/db.html.twig */
  14. class __TwigTemplate_b620b9029e8f9ab11d428d106267589f extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'toolbar' => [$this'block_toolbar'],
  24.             'menu' => [$this'block_menu'],
  25.             'panel' => [$this'block_panel'],
  26.             'queries' => [$this'block_queries'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return $this->loadTemplate(((twig_get_attribute($this->env$this->source, (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'1$this->source); })()), "isXmlHttpRequest", [], "any"falsefalsefalse1)) ? ("@WebProfiler/Profiler/ajax_layout.html.twig") : ("@WebProfiler/Profiler/layout.html.twig")), "@Doctrine/Collector/db.html.twig"1);
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Doctrine/Collector/db.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Doctrine/Collector/db.html.twig"));
  41.         // line 3
  42.         $macros["helper"] = $this->macros["helper"] = $this;
  43.         // line 1
  44.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  45.         
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47.         
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49.     }
  50.     // line 5
  51.     public function block_toolbar($context, array $blocks = [])
  52.     {
  53.         $macros $this->macros;
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""toolbar"));
  58.         // line 6
  59.         echo "    ";
  60.         if (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'6$this->source); })()), "querycount", [], "any"falsefalsefalse6) > 0) || (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'6$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse6) > 0))) {
  61.             // line 7
  62.             echo "
  63.         ";
  64.             // line 8
  65.             ob_start();
  66.             // line 9
  67.             echo "            ";
  68.             $context["status"] = (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'9$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse9) > 0)) ? ("red") : ((((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'9$this->source); })()), "querycount", [], "any"falsefalsefalse9) > 50)) ? ("yellow") : (""))));
  69.             // line 10
  70.             echo "
  71.             ";
  72.             // line 11
  73.             echo twig_include($this->env$context"@Doctrine/Collector/icon.svg");
  74.             echo "
  75.             ";
  76.             // line 13
  77.             if (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'13$this->source); })()), "querycount", [], "any"falsefalsefalse13) == 0) && (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'13$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse13) > 0))) {
  78.                 // line 14
  79.                 echo "                <span class=\"sf-toolbar-value\">";
  80.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'14$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse14), "html"nulltrue);
  81.                 echo "</span>
  82.                 <span class=\"sf-toolbar-label\">errors</span>
  83.             ";
  84.             } else {
  85.                 // line 17
  86.                 echo "                <span class=\"sf-toolbar-value\">";
  87.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'17$this->source); })()), "querycount", [], "any"falsefalsefalse17), "html"nulltrue);
  88.                 echo "</span>
  89.                 <span class=\"sf-toolbar-info-piece-additional-detail\">
  90.                     <span class=\"sf-toolbar-label\">in</span>
  91.                     <span class=\"sf-toolbar-value\">";
  92.                 // line 20
  93.                 echo twig_escape_filter($this->envtwig_sprintf("%0.2f", (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'20$this->source); })()), "time", [], "any"falsefalsefalse20) * 1000)), "html"nulltrue);
  94.                 echo "</span>
  95.                     <span class=\"sf-toolbar-label\">ms</span>
  96.                 </span>
  97.             ";
  98.             }
  99.             // line 24
  100.             echo "        ";
  101.             $context["icon"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  102.             // line 25
  103.             echo "
  104.         ";
  105.             // line 26
  106.             ob_start();
  107.             // line 27
  108.             echo "            <div class=\"sf-toolbar-info-piece\">
  109.                 <b>Database Queries</b>
  110.                 <span class=\"sf-toolbar-status ";
  111.             // line 29
  112.             echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'29$this->source); })()), "querycount", [], "any"falsefalsefalse29) > 50)) ? ("sf-toolbar-status-yellow") : (""));
  113.             echo "\">";
  114.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'29$this->source); })()), "querycount", [], "any"falsefalsefalse29), "html"nulltrue);
  115.             echo "</span>
  116.             </div>
  117.             <div class=\"sf-toolbar-info-piece\">
  118.                 <b>Different statements</b>
  119.                 <span class=\"sf-toolbar-status\">";
  120.             // line 33
  121.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'33$this->source); })()), "groupedQueryCount", [], "any"falsefalsefalse33), "html"nulltrue);
  122.             echo "</span>
  123.             </div>
  124.             <div class=\"sf-toolbar-info-piece\">
  125.                 <b>Query time</b>
  126.                 <span>";
  127.             // line 37
  128.             echo twig_escape_filter($this->envtwig_sprintf("%0.2f", (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'37$this->source); })()), "time", [], "any"falsefalsefalse37) * 1000)), "html"nulltrue);
  129.             echo " ms</span>
  130.             </div>
  131.             <div class=\"sf-toolbar-info-piece\">
  132.                 <b>Invalid entities</b>
  133.                 <span class=\"sf-toolbar-status ";
  134.             // line 41
  135.             echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'41$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse41) > 0)) ? ("sf-toolbar-status-red") : (""));
  136.             echo "\">";
  137.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'41$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse41), "html"nulltrue);
  138.             echo "</span>
  139.             </div>
  140.             ";
  141.             // line 43
  142.             if (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'43$this->source); })()), "cacheEnabled", [], "any"falsefalsefalse43)) {
  143.                 // line 44
  144.                 echo "                <div class=\"sf-toolbar-info-piece\">
  145.                     <b>Cache hits</b>
  146.                     <span class=\"sf-toolbar-status sf-toolbar-status-green\">";
  147.                 // line 46
  148.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'46$this->source); })()), "cacheHitsCount", [], "any"falsefalsefalse46), "html"nulltrue);
  149.                 echo "</span>
  150.                 </div>
  151.                 <div class=\"sf-toolbar-info-piece\">
  152.                     <b>Cache misses</b>
  153.                     <span class=\"sf-toolbar-status ";
  154.                 // line 50
  155.                 echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'50$this->source); })()), "cacheMissesCount", [], "any"falsefalsefalse50) > 0)) ? ("sf-toolbar-status-yellow") : (""));
  156.                 echo "\">";
  157.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'50$this->source); })()), "cacheMissesCount", [], "any"falsefalsefalse50), "html"nulltrue);
  158.                 echo "</span>
  159.                 </div>
  160.                 <div class=\"sf-toolbar-info-piece\">
  161.                     <b>Cache puts</b>
  162.                     <span class=\"sf-toolbar-status ";
  163.                 // line 54
  164.                 echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'54$this->source); })()), "cachePutsCount", [], "any"falsefalsefalse54) > 0)) ? ("sf-toolbar-status-yellow") : (""));
  165.                 echo "\">";
  166.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'54$this->source); })()), "cachePutsCount", [], "any"falsefalsefalse54), "html"nulltrue);
  167.                 echo "</span>
  168.                 </div>
  169.             ";
  170.             } else {
  171.                 // line 57
  172.                 echo "                <div class=\"sf-toolbar-info-piece\">
  173.                     <b>Second Level Cache</b>
  174.                     <span class=\"sf-toolbar-status\">disabled</span>
  175.                 </div>
  176.             ";
  177.             }
  178.             // line 62
  179.             echo "        ";
  180.             $context["text"] = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  181.             // line 63
  182.             echo "
  183.         ";
  184.             // line 64
  185.             echo twig_include($this->env$context"@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url"$context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.'64$this->source); })()), "status" => ((array_key_exists("status"$context)) ? (_twig_default_filter((isset($context["status"]) || array_key_exists("status"$context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.'64$this->source); })()), "")) : (""))]);
  186.             echo "
  187.     ";
  188.         }
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     // line 69
  195.     public function block_menu($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  202.         // line 70
  203.         echo "    <span class=\"label ";
  204.         echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'70$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse70) > 0)) ? ("label-status-error") : (""));
  205.         echo " ";
  206.         echo (((twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'70$this->source); })()), "querycount", [], "any"falsefalsefalse70) == 0)) ? ("disabled") : (""));
  207.         echo "\">
  208.         <span class=\"icon\">";
  209.         // line 71
  210.         echo twig_include($this->env$context"@Doctrine/Collector/icon.svg");
  211.         echo "</span>
  212.         <strong>Doctrine</strong>
  213.         ";
  214.         // line 73
  215.         if (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'73$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse73)) {
  216.             // line 74
  217.             echo "            <span class=\"count\">
  218.                 <span>";
  219.             // line 75
  220.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'75$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse75), "html"nulltrue);
  221.             echo "</span>
  222.             </span>
  223.         ";
  224.         }
  225.         // line 78
  226.         echo "    </span>
  227. ";
  228.         
  229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  230.         
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  232.     }
  233.     // line 81
  234.     public function block_panel($context, array $blocks = [])
  235.     {
  236.         $macros $this->macros;
  237.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  239.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""panel"));
  241.         // line 82
  242.         echo "    ";
  243.         if (("explain" == (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'82$this->source); })()))) {
  244.             // line 83
  245.             echo "        ";
  246.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Doctrine\\Bundle\\DoctrineBundle\\Controller\\ProfilerController::explainAction", ["token" =>             // line 84
  247. (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'84$this->source); })()), "panel" => "db""connectionName" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 86
  248. (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'86$this->source); })()), "query", [], "any"falsefalsefalse86), "get", [=> "connection"], "method"falsefalsefalse86), "query" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,             // line 87
  249. (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'87$this->source); })()), "query", [], "any"falsefalsefalse87), "get", [=> "query"], "method"falsefalsefalse87)]));
  250.             // line 88
  251.             echo "
  252.     ";
  253.         } else {
  254.             // line 90
  255.             echo "        ";
  256.             $this->displayBlock("queries"$context$blocks);
  257.             echo "
  258.     ";
  259.         }
  260.         
  261.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  262.         
  263.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  264.     }
  265.     // line 94
  266.     public function block_queries($context, array $blocks = [])
  267.     {
  268.         $macros $this->macros;
  269.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  270.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""queries"));
  271.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  272.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""queries"));
  273.         // line 95
  274.         echo "    <style>
  275.         .time-container { position: relative; }
  276.         .time-container .nowrap { position: relative; z-index: 1; text-shadow: 0 0 2px #fff; }
  277.         .time-bar { display: block; position: absolute; top: 0; left: 0; bottom: 0; background: #e0e0e0; }
  278.         .sql-runnable.sf-toggle-content.sf-toggle-visible { display: flex; flex-direction: column; }
  279.         .sql-runnable button { align-self: end; }
  280.     </style>
  281.     <h2>Query Metrics</h2>
  282.     <div class=\"metrics\">
  283.         <div class=\"metric\">
  284.             <span class=\"value\">";
  285.         // line 107
  286.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'107$this->source); })()), "querycount", [], "any"falsefalsefalse107), "html"nulltrue);
  287.         echo "</span>
  288.             <span class=\"label\">Database Queries</span>
  289.         </div>
  290.         <div class=\"metric\">
  291.             <span class=\"value\">";
  292.         // line 112
  293.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'112$this->source); })()), "groupedQueryCount", [], "any"falsefalsefalse112), "html"nulltrue);
  294.         echo "</span>
  295.             <span class=\"label\">Different statements</span>
  296.         </div>
  297.         <div class=\"metric\">
  298.             <span class=\"value\">";
  299.         // line 117
  300.         echo twig_escape_filter($this->envtwig_sprintf("%0.2f", (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'117$this->source); })()), "time", [], "any"falsefalsefalse117) * 1000)), "html"nulltrue);
  301.         echo " ms</span>
  302.             <span class=\"label\">Query time</span>
  303.         </div>
  304.         <div class=\"metric\">
  305.             <span class=\"value\">";
  306.         // line 122
  307.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'122$this->source); })()), "invalidEntityCount", [], "any"falsefalsefalse122), "html"nulltrue);
  308.         echo "</span>
  309.             <span class=\"label\">Invalid entities</span>
  310.         </div>
  311.         ";
  312.         // line 126
  313.         if (twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'126$this->source); })()), "cacheEnabled", [], "any"falsefalsefalse126)) {
  314.             // line 127
  315.             echo "            <div class=\"metric\">
  316.                 <span class=\"value\">";
  317.             // line 128
  318.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'128$this->source); })()), "cacheHitsCount", [], "any"falsefalsefalse128), "html"nulltrue);
  319.             echo "</span>
  320.                 <span class=\"label\">Cache hits</span>
  321.             </div>
  322.             <div class=\"metric\">
  323.                 <span class=\"value\">";
  324.             // line 132
  325.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'132$this->source); })()), "cacheMissesCount", [], "any"falsefalsefalse132), "html"nulltrue);
  326.             echo "</span>
  327.                 <span class=\"label\">Cache misses</span>
  328.             </div>
  329.             <div class=\"metric\">
  330.                 <span class=\"value\">";
  331.             // line 136
  332.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'136$this->source); })()), "cachePutsCount", [], "any"falsefalsefalse136), "html"nulltrue);
  333.             echo "</span>
  334.                 <span class=\"label\">Cache puts</span>
  335.             </div>
  336.         ";
  337.         }
  338.         // line 140
  339.         echo "    </div>
  340.     ";
  341.         // line 142
  342.         $context["group_queries"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["request"]) || array_key_exists("request"$context) ? $context["request"] : (function () { throw new RuntimeError('Variable "request" does not exist.'142$this->source); })()), "query", [], "any"falsefalsefalse142), "getBoolean", [=> "group"], "method"falsefalsefalse142);
  343.         // line 143
  344.         echo "    ";
  345.         if ((isset($context["group_queries"]) || array_key_exists("group_queries"$context) ? $context["group_queries"] : (function () { throw new RuntimeError('Variable "group_queries" does not exist.'143$this->source); })())) {
  346.             // line 144
  347.             echo "        <h2>Grouped Statements</h2>
  348.         <p><a href=\"";
  349.             // line 145
  350.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["panel" => "db""token" => (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'145$this->source); })())]), "html"nulltrue);
  351.             echo "\">Show all queries</a></p>
  352.     ";
  353.         } else {
  354.             // line 147
  355.             echo "        <h2>Queries</h2>
  356.         <p><a href=\"";
  357.             // line 148
  358.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["panel" => "db""token" => (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'148$this->source); })()), "group" => true]), "html"nulltrue);
  359.             echo "\">Group similar statements</a></p>
  360.     ";
  361.         }
  362.         // line 150
  363.         echo "
  364.     ";
  365.         // line 151
  366.         $context['_parent'] = $context;
  367.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'151$this->source); })()), "queries", [], "any"falsefalsefalse151));
  368.         $context['loop'] = [
  369.           'parent' => $context['_parent'],
  370.           'index0' => 0,
  371.           'index'  => 1,
  372.           'first'  => true,
  373.         ];
  374.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  375.             $length count($context['_seq']);
  376.             $context['loop']['revindex0'] = $length 1;
  377.             $context['loop']['revindex'] = $length;
  378.             $context['loop']['length'] = $length;
  379.             $context['loop']['last'] = === $length;
  380.         }
  381.         foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
  382.             // line 152
  383.             echo "        ";
  384.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'152$this->source); })()), "connections", [], "any"falsefalsefalse152)) > 1)) {
  385.                 // line 153
  386.                 echo "            <h3>";
  387.                 echo twig_escape_filter($this->env$context["connection"], "html"nulltrue);
  388.                 echo " <small>connection</small></h3>
  389.         ";
  390.             }
  391.             // line 155
  392.             echo "
  393.         ";
  394.             // line 156
  395.             if (twig_test_empty($context["queries"])) {
  396.                 // line 157
  397.                 echo "            <div class=\"empty\">
  398.                 <p>No database queries were performed.</p>
  399.             </div>
  400.         ";
  401.             } else {
  402.                 // line 161
  403.                 echo "            ";
  404.                 if ((isset($context["group_queries"]) || array_key_exists("group_queries"$context) ? $context["group_queries"] : (function () { throw new RuntimeError('Variable "group_queries" does not exist.'161$this->source); })())) {
  405.                     // line 162
  406.                     echo "                ";
  407.                     $context["queries"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'162$this->source); })()), "groupedQueries", [], "any"falsefalsefalse162), $context["connection"], [], "array"falsefalsefalse162);
  408.                     // line 163
  409.                     echo "            ";
  410.                 }
  411.                 // line 164
  412.                 echo "            <table class=\"alt queries-table\">
  413.                 <thead>
  414.                 <tr>
  415.                     ";
  416.                 // line 167
  417.                 if ((isset($context["group_queries"]) || array_key_exists("group_queries"$context) ? $context["group_queries"] : (function () { throw new RuntimeError('Variable "group_queries" does not exist.'167$this->source); })())) {
  418.                     // line 168
  419.                     echo "                        <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 0, 'queries-";
  420.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse168), "html"nulltrue);
  421.                     echo "')\" data-sort-direction=\"1\" style=\"cursor: pointer;\">Time<span class=\"text-muted\">&#9660;</span></th>
  422.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 1, 'queries-";
  423.                     // line 169
  424.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse169), "html"nulltrue);
  425.                     echo "')\" style=\"cursor: pointer;\">Count<span></span></th>
  426.                     ";
  427.                 } else {
  428.                     // line 171
  429.                     echo "                        <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 0, 'queries-";
  430.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse171), "html"nulltrue);
  431.                     echo "')\" data-sort-direction=\"-1\" style=\"cursor: pointer;\">#<span class=\"text-muted\">&#9650;</span></th>
  432.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 1, 'queries-";
  433.                     // line 172
  434.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse172), "html"nulltrue);
  435.                     echo "')\" style=\"cursor: pointer;\">Time<span></span></th>
  436.                     ";
  437.                 }
  438.                 // line 174
  439.                 echo "                    <th style=\"width: 100%;\">Info</th>
  440.                 </tr>
  441.                 </thead>
  442.                 <tbody id=\"queries-";
  443.                 // line 177
  444.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse177), "html"nulltrue);
  445.                 echo "\">
  446.                     ";
  447.                 // line 178
  448.                 $context['_parent'] = $context;
  449.                 $context['_seq'] = twig_ensure_traversable($context["queries"]);
  450.                 $context['loop'] = [
  451.                   'parent' => $context['_parent'],
  452.                   'index0' => 0,
  453.                   'index'  => 1,
  454.                   'first'  => true,
  455.                 ];
  456.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  457.                     $length count($context['_seq']);
  458.                     $context['loop']['revindex0'] = $length 1;
  459.                     $context['loop']['revindex'] = $length;
  460.                     $context['loop']['length'] = $length;
  461.                     $context['loop']['last'] = === $length;
  462.                 }
  463.                 foreach ($context['_seq'] as $context["i"] => $context["query"]) {
  464.                     // line 179
  465.                     echo "                        ";
  466.                     $context["i"] = (((isset($context["group_queries"]) || array_key_exists("group_queries"$context) ? $context["group_queries"] : (function () { throw new RuntimeError('Variable "group_queries" does not exist.'179$this->source); })())) ? (twig_get_attribute($this->env$this->source$context["query"], "index", [], "any"falsefalsefalse179)) : ($context["i"]));
  467.                     // line 180
  468.                     echo "                        <tr id=\"queryNo-";
  469.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  470.                     echo "-";
  471.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse180), "loop", [], "any"falsefalsefalse180), "index", [], "any"falsefalsefalse180), "html"nulltrue);
  472.                     echo "\">
  473.                             ";
  474.                     // line 181
  475.                     if ((isset($context["group_queries"]) || array_key_exists("group_queries"$context) ? $context["group_queries"] : (function () { throw new RuntimeError('Variable "group_queries" does not exist.'181$this->source); })())) {
  476.                         // line 182
  477.                         echo "                                <td class=\"time-container\">
  478.                                     <span class=\"time-bar\" style=\"width:";
  479.                         // line 183
  480.                         echo twig_escape_filter($this->envtwig_sprintf("%0.2f"twig_get_attribute($this->env$this->source$context["query"], "executionPercent", [], "any"falsefalsefalse183)), "html"nulltrue);
  481.                         echo "%\"></span>
  482.                                     <span class=\"nowrap\">";
  483.                         // line 184
  484.                         echo twig_escape_filter($this->envtwig_sprintf("%0.2f", (twig_get_attribute($this->env$this->source$context["query"], "executionMS", [], "any"falsefalsefalse184) * 1000)), "html"nulltrue);
  485.                         echo "&nbsp;ms<br />(";
  486.                         echo twig_escape_filter($this->envtwig_sprintf("%0.2f"twig_get_attribute($this->env$this->source$context["query"], "executionPercent", [], "any"falsefalsefalse184)), "html"nulltrue);
  487.                         echo "%)</span>
  488.                                 </td>
  489.                                 <td class=\"nowrap\">";
  490.                         // line 186
  491.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["query"], "count", [], "any"falsefalsefalse186), "html"nulltrue);
  492.                         echo "</td>
  493.                             ";
  494.                     } else {
  495.                         // line 188
  496.                         echo "                                <td class=\"nowrap\">";
  497.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse188), "html"nulltrue);
  498.                         echo "</td>
  499.                                 <td class=\"nowrap\">";
  500.                         // line 189
  501.                         echo twig_escape_filter($this->envtwig_sprintf("%0.2f", (twig_get_attribute($this->env$this->source$context["query"], "executionMS", [], "any"falsefalsefalse189) * 1000)), "html"nulltrue);
  502.                         echo "&nbsp;ms</td>
  503.                             ";
  504.                     }
  505.                     // line 191
  506.                     echo "                            <td>
  507.                                 ";
  508.                     // line 192
  509.                     echo $this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->prettifySql(twig_get_attribute($this->env$this->source$context["query"], "sql", [], "any"falsefalsefalse192));
  510.                     echo "
  511.                                 <div>
  512.                                     <strong class=\"font-normal text-small\">Parameters</strong>: ";
  513.                     // line 195
  514.                     echo $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->envtwig_get_attribute($this->env$this->source$context["query"], "params", [], "any"falsefalsefalse195), 2);
  515.                     echo "
  516.                                 </div>
  517.                                 <div class=\"text-small font-normal\">
  518.                                     <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#formatted-query-";
  519.                     // line 199
  520.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  521.                     echo "-";
  522.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse199), "loop", [], "any"falsefalsefalse199), "index", [], "any"falsefalsefalse199), "html"nulltrue);
  523.                     echo "\" data-toggle-alt-content=\"Hide formatted query\">View formatted query</a>
  524.                                     ";
  525.                     // line 201
  526.                     if (twig_get_attribute($this->env$this->source$context["query"], "runnable", [], "any"falsefalsefalse201)) {
  527.                         // line 202
  528.                         echo "                                        &nbsp;&nbsp;
  529.                                         <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#original-query-";
  530.                         // line 203
  531.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  532.                         echo "-";
  533.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse203), "loop", [], "any"falsefalsefalse203), "index", [], "any"falsefalsefalse203), "html"nulltrue);
  534.                         echo "\" data-toggle-alt-content=\"Hide runnable query\">View runnable query</a>
  535.                                     ";
  536.                     }
  537.                     // line 205
  538.                     echo "
  539.                                     ";
  540.                     // line 206
  541.                     if (twig_get_attribute($this->env$this->source$context["query"], "explainable", [], "any"falsefalsefalse206)) {
  542.                         // line 207
  543.                         echo "                                        &nbsp;&nbsp;
  544.                                         <a class=\"link-inverse\" href=\"";
  545.                         // line 208
  546.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_profiler", ["panel" => "db""token" => (isset($context["token"]) || array_key_exists("token"$context) ? $context["token"] : (function () { throw new RuntimeError('Variable "token" does not exist.'208$this->source); })()), "page" => "explain""connection" => $context["connection"], "query" => $context["i"]]), "html"nulltrue);
  547.                         echo "\" onclick=\"return explain(this);\" data-target-id=\"explain-";
  548.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  549.                         echo "-";
  550.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse208), "loop", [], "any"falsefalsefalse208), "index", [], "any"falsefalsefalse208), "html"nulltrue);
  551.                         echo "\">Explain query</a>
  552.                                     ";
  553.                     }
  554.                     // line 210
  555.                     echo "
  556.                                     ";
  557.                     // line 211
  558.                     if (twig_get_attribute($this->env$this->source$context["query"], "backtrace", [], "any"truetruefalse211)) {
  559.                         // line 212
  560.                         echo "                                        &nbsp;&nbsp;
  561.                                         <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#backtrace-";
  562.                         // line 213
  563.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  564.                         echo "-";
  565.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse213), "loop", [], "any"falsefalsefalse213), "index", [], "any"falsefalsefalse213), "html"nulltrue);
  566.                         echo "\" data-toggle-alt-content=\"Hide query backtrace\">View query backtrace</a>
  567.                                     ";
  568.                     }
  569.                     // line 215
  570.                     echo "                                </div>
  571.                                 <div id=\"formatted-query-";
  572.                     // line 217
  573.                     echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  574.                     echo "-";
  575.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse217), "loop", [], "any"falsefalsefalse217), "index", [], "any"falsefalsefalse217), "html"nulltrue);
  576.                     echo "\" class=\"sql-runnable hidden\">
  577.                                     ";
  578.                     // line 218
  579.                     echo $this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->formatSql(twig_get_attribute($this->env$this->source$context["query"], "sql", [], "any"falsefalsefalse218), true);
  580.                     echo "
  581.                                     <button class=\"btn btn-sm hidden\" data-clipboard-text=\"";
  582.                     // line 219
  583.                     echo twig_escape_filter($this->env$this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->formatSql(twig_get_attribute($this->env$this->source$context["query"], "sql", [], "any"falsefalsefalse219), false), "html_attr");
  584.                     echo "\">Copy</button>
  585.                                 </div>
  586.                                 ";
  587.                     // line 222
  588.                     if (twig_get_attribute($this->env$this->source$context["query"], "runnable", [], "any"falsefalsefalse222)) {
  589.                         // line 223
  590.                         echo "                                    <div id=\"original-query-";
  591.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  592.                         echo "-";
  593.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse223), "loop", [], "any"falsefalsefalse223), "index", [], "any"falsefalsefalse223), "html"nulltrue);
  594.                         echo "\" class=\"sql-runnable hidden\">
  595.                                         ";
  596.                         // line 224
  597.                         $context["runnable_sql"] = $this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->replaceQueryParameters((twig_get_attribute($this->env$this->source$context["query"], "sql", [], "any"falsefalsefalse224) . ";"), twig_get_attribute($this->env$this->source$context["query"], "params", [], "any"falsefalsefalse224));
  598.                         // line 225
  599.                         echo "                                        ";
  600.                         echo $this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->prettifySql((isset($context["runnable_sql"]) || array_key_exists("runnable_sql"$context) ? $context["runnable_sql"] : (function () { throw new RuntimeError('Variable "runnable_sql" does not exist.'225$this->source); })()));
  601.                         echo "
  602.                                         <button class=\"btn btn-sm hidden\" data-clipboard-text=\"";
  603.                         // line 226
  604.                         echo twig_escape_filter($this->env, (isset($context["runnable_sql"]) || array_key_exists("runnable_sql"$context) ? $context["runnable_sql"] : (function () { throw new RuntimeError('Variable "runnable_sql" does not exist.'226$this->source); })()), "html_attr");
  605.                         echo "\">Copy</button>
  606.                                     </div>
  607.                                 ";
  608.                     }
  609.                     // line 229
  610.                     echo "
  611.                                 ";
  612.                     // line 230
  613.                     if (twig_get_attribute($this->env$this->source$context["query"], "explainable", [], "any"falsefalsefalse230)) {
  614.                         // line 231
  615.                         echo "                                    <div id=\"explain-";
  616.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  617.                         echo "-";
  618.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse231), "loop", [], "any"falsefalsefalse231), "index", [], "any"falsefalsefalse231), "html"nulltrue);
  619.                         echo "\" class=\"sql-explain\"></div>
  620.                                 ";
  621.                     }
  622.                     // line 233
  623.                     echo "
  624.                                 ";
  625.                     // line 234
  626.                     if (twig_get_attribute($this->env$this->source$context["query"], "backtrace", [], "any"truetruefalse234)) {
  627.                         // line 235
  628.                         echo "                                    <div id=\"backtrace-";
  629.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  630.                         echo "-";
  631.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loop"], "parent", [], "any"falsefalsefalse235), "loop", [], "any"falsefalsefalse235), "index", [], "any"falsefalsefalse235), "html"nulltrue);
  632.                         echo "\" class=\"hidden\">
  633.                                         <table>
  634.                                             <thead>
  635.                                                 <tr>
  636.                                                     <th scope=\"col\">#</th>
  637.                                                     <th scope=\"col\">File/Call</th>
  638.                                                 </tr>
  639.                                             </thead>
  640.                                             <tbody>
  641.                                                 ";
  642.                         // line 244
  643.                         $context['_parent'] = $context;
  644.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["query"], "backtrace", [], "any"falsefalsefalse244));
  645.                         $context['loop'] = [
  646.                           'parent' => $context['_parent'],
  647.                           'index0' => 0,
  648.                           'index'  => 1,
  649.                           'first'  => true,
  650.                         ];
  651.                         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  652.                             $length count($context['_seq']);
  653.                             $context['loop']['revindex0'] = $length 1;
  654.                             $context['loop']['revindex'] = $length;
  655.                             $context['loop']['length'] = $length;
  656.                             $context['loop']['last'] = === $length;
  657.                         }
  658.                         foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
  659.                             // line 245
  660.                             echo "                                                    <tr>
  661.                                                         <td>";
  662.                             // line 246
  663.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse246), "html"nulltrue);
  664.                             echo "</td>
  665.                                                         <td>
  666.                                                             <span class=\"text-small\">
  667.                                                                 ";
  668.                             // line 249
  669.                             $context["line_number"] = ((twig_get_attribute($this->env$this->source$context["trace"], "line", [], "any"truetruefalse249)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["trace"], "line", [], "any"falsefalsefalse249), 1)) : (1));
  670.                             // line 250
  671.                             echo "                                                                ";
  672.                             if (twig_get_attribute($this->env$this->source$context["trace"], "file", [], "any"truetruefalse250)) {
  673.                                 // line 251
  674.                                 echo "                                                                    <a href=\"";
  675.                                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\CodeExtension']->getFileLink(twig_get_attribute($this->env$this->source$context["trace"], "file", [], "any"falsefalsefalse251), (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'251$this->source); })())), "html"nulltrue);
  676.                                 echo "\">
  677.                                                                 ";
  678.                             }
  679.                             // line 253
  680.                             echo twig_escape_filter($this->env, (((twig_get_attribute($this->env$this->source$context["trace"], "class", [], "any"truetruefalse253)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["trace"], "class", [], "any"falsefalsefalse253))) : ("")) . ((twig_get_attribute($this->env$this->source$context["trace"], "class", [], "any"truetruefalse253)) ? (((twig_get_attribute($this->env$this->source$context["trace"], "type", [], "any"truetruefalse253)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source$context["trace"], "type", [], "any"falsefalsefalse253), "::")) : ("::"))) : (""))), "html"nulltrue);
  681.                             // line 254
  682.                             echo "<span class=\"status-warning\">";
  683.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["trace"], "function", [], "any"falsefalsefalse254), "html"nulltrue);
  684.                             echo "</span>
  685.                                                                 ";
  686.                             // line 255
  687.                             if (twig_get_attribute($this->env$this->source$context["trace"], "file", [], "any"truetruefalse255)) {
  688.                                 // line 256
  689.                                 echo "                                                                    </a>
  690.                                                                 ";
  691.                             }
  692.                             // line 258
  693.                             echo "                                                                (line ";
  694.                             echo twig_escape_filter($this->env, (isset($context["line_number"]) || array_key_exists("line_number"$context) ? $context["line_number"] : (function () { throw new RuntimeError('Variable "line_number" does not exist.'258$this->source); })()), "html"nulltrue);
  695.                             echo ")
  696.                                                             </span>
  697.                                                         </td>
  698.                                                     </tr>
  699.                                                 ";
  700.                             ++$context['loop']['index0'];
  701.                             ++$context['loop']['index'];
  702.                             $context['loop']['first'] = false;
  703.                             if (isset($context['loop']['length'])) {
  704.                                 --$context['loop']['revindex0'];
  705.                                 --$context['loop']['revindex'];
  706.                                 $context['loop']['last'] = === $context['loop']['revindex0'];
  707.                             }
  708.                         }
  709.                         $_parent $context['_parent'];
  710.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
  711.                         $context array_intersect_key($context$_parent) + $_parent;
  712.                         // line 263
  713.                         echo "                                            </tbody>
  714.                                         </table>
  715.                                     </div>
  716.                                 ";
  717.                     }
  718.                     // line 267
  719.                     echo "                            </td>
  720.                         </tr>
  721.                     ";
  722.                     ++$context['loop']['index0'];
  723.                     ++$context['loop']['index'];
  724.                     $context['loop']['first'] = false;
  725.                     if (isset($context['loop']['length'])) {
  726.                         --$context['loop']['revindex0'];
  727.                         --$context['loop']['revindex'];
  728.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  729.                     }
  730.                 }
  731.                 $_parent $context['_parent'];
  732.                 unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
  733.                 $context array_intersect_key($context$_parent) + $_parent;
  734.                 // line 270
  735.                 echo "                </tbody>
  736.             </table>
  737.         ";
  738.             }
  739.             // line 273
  740.             echo "    ";
  741.             ++$context['loop']['index0'];
  742.             ++$context['loop']['index'];
  743.             $context['loop']['first'] = false;
  744.             if (isset($context['loop']['length'])) {
  745.                 --$context['loop']['revindex0'];
  746.                 --$context['loop']['revindex'];
  747.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  748.             }
  749.         }
  750.         $_parent $context['_parent'];
  751.         unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
  752.         $context array_intersect_key($context$_parent) + $_parent;
  753.         // line 274
  754.         echo "
  755.     <h2>Database Connections</h2>
  756.     ";
  757.         // line 277
  758.         if ( !twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'277$this->source); })()), "connections", [], "any"falsefalsefalse277)) {
  759.             // line 278
  760.             echo "        <div class=\"empty\">
  761.             <p>There are no configured database connections.</p>
  762.         </div>
  763.     ";
  764.         } else {
  765.             // line 282
  766.             echo "        ";
  767.             echo twig_call_macro($macros["helper"], "macro_render_simple_table", ["Name""Service"twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'282$this->source); })()), "connections", [], "any"falsefalsefalse282)], 282$context$this->getSourceContext());
  768.             echo "
  769.     ";
  770.         }
  771.         // line 284
  772.         echo "
  773.     <h2>Entity Managers</h2>
  774.     ";
  775.         // line 287
  776.         if ( !twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'287$this->source); })()), "managers", [], "any"falsefalsefalse287)) {
  777.             // line 288
  778.             echo "        <div class=\"empty\">
  779.             <p>There are no configured entity managers.</p>
  780.         </div>
  781.     ";
  782.         } else {
  783.             // line 292
  784.             echo "        ";
  785.             echo twig_call_macro($macros["helper"], "macro_render_simple_table", ["Name""Service"twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'292$this->source); })()), "managers", [], "any"falsefalsefalse292)], 292$context$this->getSourceContext());
  786.             echo "
  787.     ";
  788.         }
  789.         // line 294
  790.         echo "
  791.     <h2>Second Level Cache</h2>
  792.     ";
  793.         // line 297
  794.         if ( !twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'297$this->source); })()), "cacheEnabled", [], "any"falsefalsefalse297)) {
  795.             // line 298
  796.             echo "        <div class=\"empty\">
  797.             <p>Second Level Cache is not enabled.</p>
  798.         </div>
  799.     ";
  800.         } else {
  801.             // line 302
  802.             echo "        ";
  803.             if ( !twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'302$this->source); })()), "cacheCounts", [], "any"falsefalsefalse302)) {
  804.                 // line 303
  805.                 echo "            <div class=\"empty\">
  806.                 <p>Second level cache information is not available.</p>
  807.             </div>
  808.         ";
  809.             } else {
  810.                 // line 307
  811.                 echo "            <div class=\"metrics\">
  812.                 <div class=\"metric\">
  813.                     <span class=\"value\">";
  814.                 // line 309
  815.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'309$this->source); })()), "cacheCounts", [], "any"falsefalsefalse309), "hits", [], "any"falsefalsefalse309), "html"nulltrue);
  816.                 echo "</span>
  817.                     <span class=\"label\">Hits</span>
  818.                 </div>
  819.                 <div class=\"metric\">
  820.                     <span class=\"value\">";
  821.                 // line 314
  822.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'314$this->source); })()), "cacheCounts", [], "any"falsefalsefalse314), "misses", [], "any"falsefalsefalse314), "html"nulltrue);
  823.                 echo "</span>
  824.                     <span class=\"label\">Misses</span>
  825.                 </div>
  826.                 <div class=\"metric\">
  827.                     <span class=\"value\">";
  828.                 // line 319
  829.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'319$this->source); })()), "cacheCounts", [], "any"falsefalsefalse319), "puts", [], "any"falsefalsefalse319), "html"nulltrue);
  830.                 echo "</span>
  831.                     <span class=\"label\">Puts</span>
  832.                 </div>
  833.             </div>
  834.             ";
  835.                 // line 324
  836.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'324$this->source); })()), "cacheRegions", [], "any"falsefalsefalse324), "hits", [], "any"falsefalsefalse324)) {
  837.                     // line 325
  838.                     echo "                <h3>Number of cache hits</h3>
  839.                 ";
  840.                     // line 326
  841.                     echo twig_call_macro($macros["helper"], "macro_render_simple_table", ["Region""Hits"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'326$this->source); })()), "cacheRegions", [], "any"falsefalsefalse326), "hits", [], "any"falsefalsefalse326)], 326$context$this->getSourceContext());
  842.                     echo "
  843.             ";
  844.                 }
  845.                 // line 328
  846.                 echo "
  847.             ";
  848.                 // line 329
  849.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'329$this->source); })()), "cacheRegions", [], "any"falsefalsefalse329), "misses", [], "any"falsefalsefalse329)) {
  850.                     // line 330
  851.                     echo "                <h3>Number of cache misses</h3>
  852.                 ";
  853.                     // line 331
  854.                     echo twig_call_macro($macros["helper"], "macro_render_simple_table", ["Region""Misses"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'331$this->source); })()), "cacheRegions", [], "any"falsefalsefalse331), "misses", [], "any"falsefalsefalse331)], 331$context$this->getSourceContext());
  855.                     echo "
  856.             ";
  857.                 }
  858.                 // line 333
  859.                 echo "
  860.             ";
  861.                 // line 334
  862.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'334$this->source); })()), "cacheRegions", [], "any"falsefalsefalse334), "puts", [], "any"falsefalsefalse334)) {
  863.                     // line 335
  864.                     echo "                <h3>Number of cache puts</h3>
  865.                 ";
  866.                     // line 336
  867.                     echo twig_call_macro($macros["helper"], "macro_render_simple_table", ["Region""Puts"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'336$this->source); })()), "cacheRegions", [], "any"falsefalsefalse336), "puts", [], "any"falsefalsefalse336)], 336$context$this->getSourceContext());
  868.                     echo "
  869.             ";
  870.                 }
  871.                 // line 338
  872.                 echo "        ";
  873.             }
  874.             // line 339
  875.             echo "    ";
  876.         }
  877.         // line 340
  878.         echo "
  879.     ";
  880.         // line 341
  881.         if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'341$this->source); })()), "entities", [], "any"falsefalsefalse341)) > 0)) {
  882.             // line 342
  883.             echo "        <h2>Entities Mapping</h2>
  884.         ";
  885.             // line 344
  886.             $context['_parent'] = $context;
  887.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'344$this->source); })()), "entities", [], "any"falsefalsefalse344));
  888.             foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
  889.                 // line 345
  890.                 echo "            ";
  891.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'345$this->source); })()), "managers", [], "any"falsefalsefalse345)) > 1)) {
  892.                     // line 346
  893.                     echo "                <h3>";
  894.                     echo twig_escape_filter($this->env$context["manager"], "html"nulltrue);
  895.                     echo " <small>entity manager</small></h3>
  896.             ";
  897.                 }
  898.                 // line 348
  899.                 echo "
  900.             ";
  901.                 // line 349
  902.                 if (twig_test_empty($context["classes"])) {
  903.                     // line 350
  904.                     echo "                <div class=\"empty\">
  905.                     <p>No loaded entities.</p>
  906.                 </div>
  907.             ";
  908.                 } else {
  909.                     // line 354
  910.                     echo "                <table>
  911.                     <thead>
  912.                     <tr>
  913.                         <th scope=\"col\">Class</th>
  914.                         <th scope=\"col\">Mapping errors</th>
  915.                     </tr>
  916.                     </thead>
  917.                     <tbody>
  918.                     ";
  919.                     // line 362
  920.                     $context['_parent'] = $context;
  921.                     $context['_seq'] = twig_ensure_traversable($context["classes"]);
  922.                     foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
  923.                         // line 363
  924.                         echo "                        ";
  925.                         $context["contains_errors"] = (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "mappingErrors", [], "any"falsetruefalse363), $context["manager"], [], "array"truetruefalse363) && twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["collector"] ?? null), "mappingErrors", [], "any"falsetruefalse363), $context["manager"], [], "array"falsetruefalse363), $context["class"], [], "array"truetruefalse363));
  926.                         // line 364
  927.                         echo "                        <tr class=\"";
  928.                         echo (((isset($context["contains_errors"]) || array_key_exists("contains_errors"$context) ? $context["contains_errors"] : (function () { throw new RuntimeError('Variable "contains_errors" does not exist.'364$this->source); })())) ? ("status-error") : (""));
  929.                         echo "\">
  930.                             <td>";
  931.                         // line 365
  932.                         echo twig_escape_filter($this->env$context["class"], "html"nulltrue);
  933.                         echo "</td>
  934.                             <td class=\"font-normal\">
  935.                                 ";
  936.                         // line 367
  937.                         if ((isset($context["contains_errors"]) || array_key_exists("contains_errors"$context) ? $context["contains_errors"] : (function () { throw new RuntimeError('Variable "contains_errors" does not exist.'367$this->source); })())) {
  938.                             // line 368
  939.                             echo "                                    <ul>
  940.                                         ";
  941.                             // line 369
  942.                             $context['_parent'] = $context;
  943.                             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["collector"]) || array_key_exists("collector"$context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.'369$this->source); })()), "mappingErrors", [], "any"falsefalsefalse369), $context["manager"], [], "array"falsefalsefalse369), $context["class"], [], "array"falsefalsefalse369));
  944.                             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  945.                                 // line 370
  946.                                 echo "                                            <li>";
  947.                                 echo twig_escape_filter($this->env$context["error"], "html"nulltrue);
  948.                                 echo "</li>
  949.                                         ";
  950.                             }
  951.                             $_parent $context['_parent'];
  952.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  953.                             $context array_intersect_key($context$_parent) + $_parent;
  954.                             // line 372
  955.                             echo "                                    </ul>
  956.                                 ";
  957.                         } else {
  958.                             // line 374
  959.                             echo "                                    No errors.
  960.                                 ";
  961.                         }
  962.                         // line 376
  963.                         echo "                            </td>
  964.                         </tr>
  965.                     ";
  966.                     }
  967.                     $_parent $context['_parent'];
  968.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
  969.                     $context array_intersect_key($context$_parent) + $_parent;
  970.                     // line 379
  971.                     echo "                    </tbody>
  972.                 </table>
  973.             ";
  974.                 }
  975.                 // line 382
  976.                 echo "        ";
  977.             }
  978.             $_parent $context['_parent'];
  979.             unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
  980.             $context array_intersect_key($context$_parent) + $_parent;
  981.             // line 383
  982.             echo "    ";
  983.         }
  984.         // line 384
  985.         echo "
  986.     <script type=\"text/javascript\">//<![CDATA[
  987.         function explain(link) {
  988.             \"use strict\";
  989.             var targetId = link.getAttribute('data-target-id');
  990.             var targetElement = document.getElementById(targetId);
  991.             if (targetElement.style.display != 'block') {
  992.                 Sfjs.load(targetId, link.href, null, function(xhr, el) {
  993.                     el.innerHTML = 'An error occurred while loading the query explanation.';
  994.                 });
  995.                 targetElement.style.display = 'block';
  996.                 link.innerHTML = 'Hide query explanation';
  997.             } else {
  998.                 targetElement.style.display = 'none';
  999.                 link.innerHTML = 'Explain query';
  1000.             }
  1001.             return false;
  1002.         }
  1003.         function sortTable(header, column, targetId) {
  1004.             \"use strict\";
  1005.             var direction = parseInt(header.getAttribute('data-sort-direction')) || 1,
  1006.                 items = [],
  1007.                 target = document.getElementById(targetId),
  1008.                 rows = target.children,
  1009.                 headers = header.parentElement.children,
  1010.                 i;
  1011.             for (i = 0; i < rows.length; ++i) {
  1012.                 items.push(rows[i]);
  1013.             }
  1014.             for (i = 0; i < headers.length; ++i) {
  1015.                 headers[i].removeAttribute('data-sort-direction');
  1016.                 if (headers[i].children.length > 0) {
  1017.                     headers[i].children[0].innerHTML = '';
  1018.                 }
  1019.             }
  1020.             header.setAttribute('data-sort-direction', (-1*direction).toString());
  1021.             header.children[0].innerHTML = direction > 0 ? '<span class=\"text-muted\">&#9650;</span>' : '<span class=\"text-muted\">&#9660;</span>';
  1022.             items.sort(function(a, b) {
  1023.                 return direction * (parseFloat(a.children[column].innerHTML) - parseFloat(b.children[column].innerHTML));
  1024.             });
  1025.             for (i = 0; i < items.length; ++i) {
  1026.                 Sfjs.removeClass(items[i], i % 2 ? 'even' : 'odd');
  1027.                 Sfjs.addClass(items[i], i % 2 ? 'odd' : 'even');
  1028.                 target.appendChild(items[i]);
  1029.             }
  1030.         }
  1031.         if (navigator.clipboard) {
  1032.             document.querySelectorAll('[data-clipboard-text]').forEach(function(button) {
  1033.                 Sfjs.removeClass(button, 'hidden');
  1034.                 button.addEventListener('click', function() {
  1035.                     navigator.clipboard.writeText(button.getAttribute('data-clipboard-text'));
  1036.                 })
  1037.             });
  1038.         }
  1039.         //]]></script>
  1040. ";
  1041.         
  1042.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1043.         
  1044.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1045.     }
  1046.     // line 454
  1047.     public function macro_render_simple_table($__label1__ null$__label2__ null$__data__ null, ...$__varargs__)
  1048.     {
  1049.         $macros $this->macros;
  1050.         $context $this->env->mergeGlobals([
  1051.             "label1" => $__label1__,
  1052.             "label2" => $__label2__,
  1053.             "data" => $__data__,
  1054.             "varargs" => $__varargs__,
  1055.         ]);
  1056.         $blocks = [];
  1057.         ob_start();
  1058.         try {
  1059.             $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1060.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_simple_table"));
  1061.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1062.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro""render_simple_table"));
  1063.             // line 455
  1064.             echo "    <table>
  1065.         <thead>
  1066.         <tr>
  1067.             <th scope=\"col\" class=\"key\">";
  1068.             // line 458
  1069.             echo twig_escape_filter($this->env, (isset($context["label1"]) || array_key_exists("label1"$context) ? $context["label1"] : (function () { throw new RuntimeError('Variable "label1" does not exist.'458$this->source); })()), "html"nulltrue);
  1070.             echo "</th>
  1071.             <th scope=\"col\">";
  1072.             // line 459
  1073.             echo twig_escape_filter($this->env, (isset($context["label2"]) || array_key_exists("label2"$context) ? $context["label2"] : (function () { throw new RuntimeError('Variable "label2" does not exist.'459$this->source); })()), "html"nulltrue);
  1074.             echo "</th>
  1075.         </tr>
  1076.         </thead>
  1077.         <tbody>
  1078.         ";
  1079.             // line 463
  1080.             $context['_parent'] = $context;
  1081.             $context['_seq'] = twig_ensure_traversable((isset($context["data"]) || array_key_exists("data"$context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.'463$this->source); })()));
  1082.             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  1083.                 // line 464
  1084.                 echo "            <tr>
  1085.                 <th scope=\"row\">";
  1086.                 // line 465
  1087.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  1088.                 echo "</th>
  1089.                 <td>";
  1090.                 // line 466
  1091.                 echo twig_escape_filter($this->env$context["value"], "html"nulltrue);
  1092.                 echo "</td>
  1093.             </tr>
  1094.         ";
  1095.             }
  1096.             $_parent $context['_parent'];
  1097.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
  1098.             $context array_intersect_key($context$_parent) + $_parent;
  1099.             // line 469
  1100.             echo "        </tbody>
  1101.     </table>
  1102. ";
  1103.             
  1104.             $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1105.             
  1106.             $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1107.             return ('' === $tmp ob_get_contents()) ? '' : new Markup($tmp$this->env->getCharset());
  1108.         } finally {
  1109.             ob_end_clean();
  1110.         }
  1111.     }
  1112.     public function getTemplateName()
  1113.     {
  1114.         return "@Doctrine/Collector/db.html.twig";
  1115.     }
  1116.     public function isTraitable()
  1117.     {
  1118.         return false;
  1119.     }
  1120.     public function getDebugInfo()
  1121.     {
  1122.         return array (  1170 => 469,  1161 => 466,  1157 => 465,  1154 => 464,  1150 => 463,  1143 => 459,  1139 => 458,  1134 => 455,  1113 => 454,  1035 => 384,  1032 => 383,  1026 => 382,  1021 => 379,  1013 => 376,  1009 => 374,  1005 => 372,  996 => 370,  992 => 369,  989 => 368,  987 => 367,  982 => 365,  977 => 364,  974 => 363,  970 => 362,  960 => 354,  954 => 350,  952 => 349,  949 => 348,  943 => 346,  940 => 345,  936 => 344,  932 => 342,  930 => 341,  927 => 340,  924 => 339,  921 => 338,  916 => 336,  913 => 335,  911 => 334,  908 => 333,  903 => 331,  900 => 330,  898 => 329,  895 => 328,  890 => 326,  887 => 325,  885 => 324,  877 => 319,  869 => 314,  861 => 309,  857 => 307,  851 => 303,  848 => 302,  842 => 298,  840 => 297,  835 => 294,  829 => 292,  823 => 288,  821 => 287,  816 => 284,  810 => 282,  804 => 278,  802 => 277,  797 => 274,  783 => 273,  778 => 270,  762 => 267,  756 => 263,  736 => 258,  732 => 256,  730 => 255,  725 => 254,  723 => 253,  717 => 251,  714 => 250,  712 => 249,  706 => 246,  703 => 245,  686 => 244,  671 => 235,  669 => 234,  666 => 233,  658 => 231,  656 => 230,  653 => 229,  647 => 226,  642 => 225,  640 => 224,  633 => 223,  631 => 222,  625 => 219,  621 => 218,  615 => 217,  611 => 215,  604 => 213,  601 => 212,  599 => 211,  596 => 210,  587 => 208,  584 => 207,  582 => 206,  579 => 205,  572 => 203,  569 => 202,  567 => 201,  560 => 199,  553 => 195,  547 => 192,  544 => 191,  539 => 189,  534 => 188,  529 => 186,  522 => 184,  518 => 183,  515 => 182,  513 => 181,  506 => 180,  503 => 179,  486 => 178,  482 => 177,  477 => 174,  472 => 172,  467 => 171,  462 => 169,  457 => 168,  455 => 167,  450 => 164,  447 => 163,  444 => 162,  441 => 161,  435 => 157,  433 => 156,  430 => 155,  424 => 153,  421 => 152,  404 => 151,  401 => 150,  396 => 148,  393 => 147,  388 => 145,  385 => 144,  382 => 143,  380 => 142,  376 => 140,  369 => 136,  362 => 132,  355 => 128,  352 => 127,  350 => 126,  343 => 122,  335 => 117,  327 => 112,  319 => 107,  305 => 95,  295 => 94,  281 => 90,  277 => 88,  275 => 87,  274 => 86,  273 => 84,  271 => 83,  268 => 82,  258 => 81,  247 => 78,  241 => 75,  238 => 74,  236 => 73,  231 => 71,  224 => 70,  214 => 69,  200 => 64,  197 => 63,  194 => 62,  187 => 57,  179 => 54,  170 => 50,  163 => 46,  159 => 44,  157 => 43,  150 => 41,  143 => 37,  136 => 33,  127 => 29,  123 => 27,  121 => 26,  118 => 25,  115 => 24,  108 => 20,  101 => 17,  94 => 14,  92 => 13,  87 => 11,  84 => 10,  81 => 9,  79 => 8,  76 => 7,  73 => 6,  63 => 5,  53 => 1,  51 => 3,  38 => 1,);
  1123.     }
  1124.     public function getSourceContext()
  1125.     {
  1126.         return new Source("{% extends request.isXmlHttpRequest ? '@WebProfiler/Profiler/ajax_layout.html.twig' : '@WebProfiler/Profiler/layout.html.twig' %}
  1127. {% import _self as helper %}
  1128. {% block toolbar %}
  1129.     {% if collector.querycount > 0 or collector.invalidEntityCount > 0 %}
  1130.         {% set icon %}
  1131.             {% set status = collector.invalidEntityCount > 0 ? 'red' : collector.querycount > 50 ? 'yellow' %}
  1132.             {{ include('@Doctrine/Collector/icon.svg') }}
  1133.             {% if collector.querycount == 0 and collector.invalidEntityCount > 0 %}
  1134.                 <span class=\"sf-toolbar-value\">{{ collector.invalidEntityCount }}</span>
  1135.                 <span class=\"sf-toolbar-label\">errors</span>
  1136.             {% else %}
  1137.                 <span class=\"sf-toolbar-value\">{{ collector.querycount }}</span>
  1138.                 <span class=\"sf-toolbar-info-piece-additional-detail\">
  1139.                     <span class=\"sf-toolbar-label\">in</span>
  1140.                     <span class=\"sf-toolbar-value\">{{ '%0.2f'|format(collector.time * 1000) }}</span>
  1141.                     <span class=\"sf-toolbar-label\">ms</span>
  1142.                 </span>
  1143.             {% endif %}
  1144.         {% endset %}
  1145.         {% set text %}
  1146.             <div class=\"sf-toolbar-info-piece\">
  1147.                 <b>Database Queries</b>
  1148.                 <span class=\"sf-toolbar-status {{ collector.querycount > 50 ? 'sf-toolbar-status-yellow' : '' }}\">{{ collector.querycount }}</span>
  1149.             </div>
  1150.             <div class=\"sf-toolbar-info-piece\">
  1151.                 <b>Different statements</b>
  1152.                 <span class=\"sf-toolbar-status\">{{ collector.groupedQueryCount }}</span>
  1153.             </div>
  1154.             <div class=\"sf-toolbar-info-piece\">
  1155.                 <b>Query time</b>
  1156.                 <span>{{ '%0.2f'|format(collector.time * 1000) }} ms</span>
  1157.             </div>
  1158.             <div class=\"sf-toolbar-info-piece\">
  1159.                 <b>Invalid entities</b>
  1160.                 <span class=\"sf-toolbar-status {{ collector.invalidEntityCount > 0 ? 'sf-toolbar-status-red' : '' }}\">{{ collector.invalidEntityCount }}</span>
  1161.             </div>
  1162.             {% if collector.cacheEnabled %}
  1163.                 <div class=\"sf-toolbar-info-piece\">
  1164.                     <b>Cache hits</b>
  1165.                     <span class=\"sf-toolbar-status sf-toolbar-status-green\">{{ collector.cacheHitsCount }}</span>
  1166.                 </div>
  1167.                 <div class=\"sf-toolbar-info-piece\">
  1168.                     <b>Cache misses</b>
  1169.                     <span class=\"sf-toolbar-status {{ collector.cacheMissesCount > 0 ? 'sf-toolbar-status-yellow' : '' }}\">{{ collector.cacheMissesCount }}</span>
  1170.                 </div>
  1171.                 <div class=\"sf-toolbar-info-piece\">
  1172.                     <b>Cache puts</b>
  1173.                     <span class=\"sf-toolbar-status {{ collector.cachePutsCount > 0 ? 'sf-toolbar-status-yellow' : '' }}\">{{ collector.cachePutsCount }}</span>
  1174.                 </div>
  1175.             {% else %}
  1176.                 <div class=\"sf-toolbar-info-piece\">
  1177.                     <b>Second Level Cache</b>
  1178.                     <span class=\"sf-toolbar-status\">disabled</span>
  1179.                 </div>
  1180.             {% endif %}
  1181.         {% endset %}
  1182.         {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status|default('') }) }}
  1183.     {% endif %}
  1184. {% endblock %}
  1185. {% block menu %}
  1186.     <span class=\"label {{ collector.invalidEntityCount > 0 ? 'label-status-error' }} {{ collector.querycount == 0 ? 'disabled' }}\">
  1187.         <span class=\"icon\">{{ include('@Doctrine/Collector/icon.svg') }}</span>
  1188.         <strong>Doctrine</strong>
  1189.         {% if collector.invalidEntityCount %}
  1190.             <span class=\"count\">
  1191.                 <span>{{ collector.invalidEntityCount }}</span>
  1192.             </span>
  1193.         {% endif %}
  1194.     </span>
  1195. {% endblock %}
  1196. {% block panel %}
  1197.     {% if 'explain' == page %}
  1198.         {{ render(controller('Doctrine\\\\Bundle\\\\DoctrineBundle\\\\Controller\\\\ProfilerController::explainAction', {
  1199.             token: token,
  1200.             panel: 'db',
  1201.             connectionName: request.query.get('connection'),
  1202.             query: request.query.get('query')
  1203.         })) }}
  1204.     {% else %}
  1205.         {{ block('queries') }}
  1206.     {% endif %}
  1207. {% endblock %}
  1208. {% block queries %}
  1209.     <style>
  1210.         .time-container { position: relative; }
  1211.         .time-container .nowrap { position: relative; z-index: 1; text-shadow: 0 0 2px #fff; }
  1212.         .time-bar { display: block; position: absolute; top: 0; left: 0; bottom: 0; background: #e0e0e0; }
  1213.         .sql-runnable.sf-toggle-content.sf-toggle-visible { display: flex; flex-direction: column; }
  1214.         .sql-runnable button { align-self: end; }
  1215.     </style>
  1216.     <h2>Query Metrics</h2>
  1217.     <div class=\"metrics\">
  1218.         <div class=\"metric\">
  1219.             <span class=\"value\">{{ collector.querycount }}</span>
  1220.             <span class=\"label\">Database Queries</span>
  1221.         </div>
  1222.         <div class=\"metric\">
  1223.             <span class=\"value\">{{ collector.groupedQueryCount }}</span>
  1224.             <span class=\"label\">Different statements</span>
  1225.         </div>
  1226.         <div class=\"metric\">
  1227.             <span class=\"value\">{{ '%0.2f'|format(collector.time * 1000) }} ms</span>
  1228.             <span class=\"label\">Query time</span>
  1229.         </div>
  1230.         <div class=\"metric\">
  1231.             <span class=\"value\">{{ collector.invalidEntityCount }}</span>
  1232.             <span class=\"label\">Invalid entities</span>
  1233.         </div>
  1234.         {% if collector.cacheEnabled %}
  1235.             <div class=\"metric\">
  1236.                 <span class=\"value\">{{ collector.cacheHitsCount }}</span>
  1237.                 <span class=\"label\">Cache hits</span>
  1238.             </div>
  1239.             <div class=\"metric\">
  1240.                 <span class=\"value\">{{ collector.cacheMissesCount }}</span>
  1241.                 <span class=\"label\">Cache misses</span>
  1242.             </div>
  1243.             <div class=\"metric\">
  1244.                 <span class=\"value\">{{ collector.cachePutsCount }}</span>
  1245.                 <span class=\"label\">Cache puts</span>
  1246.             </div>
  1247.         {% endif %}
  1248.     </div>
  1249.     {% set group_queries = request.query.getBoolean('group') %}
  1250.     {% if group_queries %}
  1251.         <h2>Grouped Statements</h2>
  1252.         <p><a href=\"{{ path('_profiler', { panel: 'db', token: token }) }}\">Show all queries</a></p>
  1253.     {% else %}
  1254.         <h2>Queries</h2>
  1255.         <p><a href=\"{{ path('_profiler', { panel: 'db', token: token, group: true }) }}\">Group similar statements</a></p>
  1256.     {% endif %}
  1257.     {% for connection, queries in collector.queries %}
  1258.         {% if collector.connections|length > 1 %}
  1259.             <h3>{{ connection }} <small>connection</small></h3>
  1260.         {% endif %}
  1261.         {% if queries is empty %}
  1262.             <div class=\"empty\">
  1263.                 <p>No database queries were performed.</p>
  1264.             </div>
  1265.         {% else %}
  1266.             {% if group_queries %}
  1267.                 {% set queries = collector.groupedQueries[connection] %}
  1268.             {% endif %}
  1269.             <table class=\"alt queries-table\">
  1270.                 <thead>
  1271.                 <tr>
  1272.                     {% if group_queries %}
  1273.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 0, 'queries-{{ loop.index }}')\" data-sort-direction=\"1\" style=\"cursor: pointer;\">Time<span class=\"text-muted\">&#9660;</span></th>
  1274.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 1, 'queries-{{ loop.index }}')\" style=\"cursor: pointer;\">Count<span></span></th>
  1275.                     {% else %}
  1276.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 0, 'queries-{{ loop.index }}')\" data-sort-direction=\"-1\" style=\"cursor: pointer;\">#<span class=\"text-muted\">&#9650;</span></th>
  1277.                         <th class=\"nowrap\" onclick=\"javascript:sortTable(this, 1, 'queries-{{ loop.index }}')\" style=\"cursor: pointer;\">Time<span></span></th>
  1278.                     {% endif %}
  1279.                     <th style=\"width: 100%;\">Info</th>
  1280.                 </tr>
  1281.                 </thead>
  1282.                 <tbody id=\"queries-{{ loop.index }}\">
  1283.                     {% for i, query in queries %}
  1284.                         {% set i = group_queries ? query.index : i %}
  1285.                         <tr id=\"queryNo-{{ i }}-{{ loop.parent.loop.index }}\">
  1286.                             {% if group_queries %}
  1287.                                 <td class=\"time-container\">
  1288.                                     <span class=\"time-bar\" style=\"width:{{ '%0.2f'|format(query.executionPercent) }}%\"></span>
  1289.                                     <span class=\"nowrap\">{{ '%0.2f'|format(query.executionMS * 1000) }}&nbsp;ms<br />({{ '%0.2f'|format(query.executionPercent) }}%)</span>
  1290.                                 </td>
  1291.                                 <td class=\"nowrap\">{{ query.count }}</td>
  1292.                             {% else %}
  1293.                                 <td class=\"nowrap\">{{ loop.index }}</td>
  1294.                                 <td class=\"nowrap\">{{ '%0.2f'|format(query.executionMS * 1000) }}&nbsp;ms</td>
  1295.                             {% endif %}
  1296.                             <td>
  1297.                                 {{ query.sql|doctrine_prettify_sql }}
  1298.                                 <div>
  1299.                                     <strong class=\"font-normal text-small\">Parameters</strong>: {{ profiler_dump(query.params, 2) }}
  1300.                                 </div>
  1301.                                 <div class=\"text-small font-normal\">
  1302.                                     <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#formatted-query-{{ i }}-{{ loop.parent.loop.index }}\" data-toggle-alt-content=\"Hide formatted query\">View formatted query</a>
  1303.                                     {% if query.runnable %}
  1304.                                         &nbsp;&nbsp;
  1305.                                         <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#original-query-{{ i }}-{{ loop.parent.loop.index }}\" data-toggle-alt-content=\"Hide runnable query\">View runnable query</a>
  1306.                                     {% endif %}
  1307.                                     {% if query.explainable %}
  1308.                                         &nbsp;&nbsp;
  1309.                                         <a class=\"link-inverse\" href=\"{{ path('_profiler', { panel: 'db', token: token, page: 'explain', connection: connection, query: i }) }}\" onclick=\"return explain(this);\" data-target-id=\"explain-{{ i }}-{{ loop.parent.loop.index }}\">Explain query</a>
  1310.                                     {% endif %}
  1311.                                     {% if query.backtrace is defined %}
  1312.                                         &nbsp;&nbsp;
  1313.                                         <a href=\"#\" class=\"sf-toggle link-inverse\" data-toggle-selector=\"#backtrace-{{ i }}-{{ loop.parent.loop.index }}\" data-toggle-alt-content=\"Hide query backtrace\">View query backtrace</a>
  1314.                                     {% endif %}
  1315.                                 </div>
  1316.                                 <div id=\"formatted-query-{{ i }}-{{ loop.parent.loop.index }}\" class=\"sql-runnable hidden\">
  1317.                                     {{ query.sql|doctrine_format_sql(highlight = true) }}
  1318.                                     <button class=\"btn btn-sm hidden\" data-clipboard-text=\"{{ query.sql|doctrine_format_sql(highlight = false)|e('html_attr') }}\">Copy</button>
  1319.                                 </div>
  1320.                                 {% if query.runnable %}
  1321.                                     <div id=\"original-query-{{ i }}-{{ loop.parent.loop.index }}\" class=\"sql-runnable hidden\">
  1322.                                         {% set runnable_sql = (query.sql ~ ';')|doctrine_replace_query_parameters(query.params) %}
  1323.                                         {{ runnable_sql|doctrine_prettify_sql }}
  1324.                                         <button class=\"btn btn-sm hidden\" data-clipboard-text=\"{{ runnable_sql|e('html_attr') }}\">Copy</button>
  1325.                                     </div>
  1326.                                 {% endif %}
  1327.                                 {% if query.explainable %}
  1328.                                     <div id=\"explain-{{ i }}-{{ loop.parent.loop.index }}\" class=\"sql-explain\"></div>
  1329.                                 {% endif %}
  1330.                                 {% if query.backtrace is defined %}
  1331.                                     <div id=\"backtrace-{{ i }}-{{ loop.parent.loop.index }}\" class=\"hidden\">
  1332.                                         <table>
  1333.                                             <thead>
  1334.                                                 <tr>
  1335.                                                     <th scope=\"col\">#</th>
  1336.                                                     <th scope=\"col\">File/Call</th>
  1337.                                                 </tr>
  1338.                                             </thead>
  1339.                                             <tbody>
  1340.                                                 {% for trace in query.backtrace %}
  1341.                                                     <tr>
  1342.                                                         <td>{{ loop.index }}</td>
  1343.                                                         <td>
  1344.                                                             <span class=\"text-small\">
  1345.                                                                 {% set line_number = trace.line|default(1) %}
  1346.                                                                 {% if trace.file is defined %}
  1347.                                                                     <a href=\"{{ trace.file|file_link(line_number) }}\">
  1348.                                                                 {% endif %}
  1349.                                                                     {{- trace.class|default ~ (trace.class is defined ? trace.type|default('::')) -}}
  1350.                                                                     <span class=\"status-warning\">{{ trace.function }}</span>
  1351.                                                                 {% if trace.file is defined %}
  1352.                                                                     </a>
  1353.                                                                 {% endif %}
  1354.                                                                 (line {{ line_number }})
  1355.                                                             </span>
  1356.                                                         </td>
  1357.                                                     </tr>
  1358.                                                 {% endfor %}
  1359.                                             </tbody>
  1360.                                         </table>
  1361.                                     </div>
  1362.                                 {% endif %}
  1363.                             </td>
  1364.                         </tr>
  1365.                     {% endfor %}
  1366.                 </tbody>
  1367.             </table>
  1368.         {% endif %}
  1369.     {% endfor %}
  1370.     <h2>Database Connections</h2>
  1371.     {% if not collector.connections %}
  1372.         <div class=\"empty\">
  1373.             <p>There are no configured database connections.</p>
  1374.         </div>
  1375.     {% else %}
  1376.         {{ helper.render_simple_table('Name', 'Service', collector.connections) }}
  1377.     {% endif %}
  1378.     <h2>Entity Managers</h2>
  1379.     {% if not collector.managers %}
  1380.         <div class=\"empty\">
  1381.             <p>There are no configured entity managers.</p>
  1382.         </div>
  1383.     {% else %}
  1384.         {{ helper.render_simple_table('Name', 'Service', collector.managers) }}
  1385.     {% endif %}
  1386.     <h2>Second Level Cache</h2>
  1387.     {% if not collector.cacheEnabled %}
  1388.         <div class=\"empty\">
  1389.             <p>Second Level Cache is not enabled.</p>
  1390.         </div>
  1391.     {% else %}
  1392.         {% if not collector.cacheCounts %}
  1393.             <div class=\"empty\">
  1394.                 <p>Second level cache information is not available.</p>
  1395.             </div>
  1396.         {% else %}
  1397.             <div class=\"metrics\">
  1398.                 <div class=\"metric\">
  1399.                     <span class=\"value\">{{ collector.cacheCounts.hits }}</span>
  1400.                     <span class=\"label\">Hits</span>
  1401.                 </div>
  1402.                 <div class=\"metric\">
  1403.                     <span class=\"value\">{{ collector.cacheCounts.misses }}</span>
  1404.                     <span class=\"label\">Misses</span>
  1405.                 </div>
  1406.                 <div class=\"metric\">
  1407.                     <span class=\"value\">{{ collector.cacheCounts.puts }}</span>
  1408.                     <span class=\"label\">Puts</span>
  1409.                 </div>
  1410.             </div>
  1411.             {% if collector.cacheRegions.hits %}
  1412.                 <h3>Number of cache hits</h3>
  1413.                 {{ helper.render_simple_table('Region', 'Hits', collector.cacheRegions.hits) }}
  1414.             {% endif %}
  1415.             {% if collector.cacheRegions.misses %}
  1416.                 <h3>Number of cache misses</h3>
  1417.                 {{ helper.render_simple_table('Region', 'Misses', collector.cacheRegions.misses) }}
  1418.             {% endif %}
  1419.             {% if collector.cacheRegions.puts %}
  1420.                 <h3>Number of cache puts</h3>
  1421.                 {{ helper.render_simple_table('Region', 'Puts', collector.cacheRegions.puts) }}
  1422.             {% endif %}
  1423.         {% endif %}
  1424.     {% endif %}
  1425.     {% if collector.entities|length > 0 %}
  1426.         <h2>Entities Mapping</h2>
  1427.         {% for manager, classes in collector.entities %}
  1428.             {% if collector.managers|length > 1 %}
  1429.                 <h3>{{ manager }} <small>entity manager</small></h3>
  1430.             {% endif %}
  1431.             {% if classes is empty %}
  1432.                 <div class=\"empty\">
  1433.                     <p>No loaded entities.</p>
  1434.                 </div>
  1435.             {% else %}
  1436.                 <table>
  1437.                     <thead>
  1438.                     <tr>
  1439.                         <th scope=\"col\">Class</th>
  1440.                         <th scope=\"col\">Mapping errors</th>
  1441.                     </tr>
  1442.                     </thead>
  1443.                     <tbody>
  1444.                     {% for class in classes %}
  1445.                         {% set contains_errors = collector.mappingErrors[manager] is defined and collector.mappingErrors[manager][class] is defined %}
  1446.                         <tr class=\"{{ contains_errors ? 'status-error' }}\">
  1447.                             <td>{{ class }}</td>
  1448.                             <td class=\"font-normal\">
  1449.                                 {% if contains_errors %}
  1450.                                     <ul>
  1451.                                         {% for error in collector.mappingErrors[manager][class] %}
  1452.                                             <li>{{ error }}</li>
  1453.                                         {% endfor %}
  1454.                                     </ul>
  1455.                                 {% else %}
  1456.                                     No errors.
  1457.                                 {% endif %}
  1458.                             </td>
  1459.                         </tr>
  1460.                     {% endfor %}
  1461.                     </tbody>
  1462.                 </table>
  1463.             {% endif %}
  1464.         {% endfor %}
  1465.     {% endif %}
  1466.     <script type=\"text/javascript\">//<![CDATA[
  1467.         function explain(link) {
  1468.             \"use strict\";
  1469.             var targetId = link.getAttribute('data-target-id');
  1470.             var targetElement = document.getElementById(targetId);
  1471.             if (targetElement.style.display != 'block') {
  1472.                 Sfjs.load(targetId, link.href, null, function(xhr, el) {
  1473.                     el.innerHTML = 'An error occurred while loading the query explanation.';
  1474.                 });
  1475.                 targetElement.style.display = 'block';
  1476.                 link.innerHTML = 'Hide query explanation';
  1477.             } else {
  1478.                 targetElement.style.display = 'none';
  1479.                 link.innerHTML = 'Explain query';
  1480.             }
  1481.             return false;
  1482.         }
  1483.         function sortTable(header, column, targetId) {
  1484.             \"use strict\";
  1485.             var direction = parseInt(header.getAttribute('data-sort-direction')) || 1,
  1486.                 items = [],
  1487.                 target = document.getElementById(targetId),
  1488.                 rows = target.children,
  1489.                 headers = header.parentElement.children,
  1490.                 i;
  1491.             for (i = 0; i < rows.length; ++i) {
  1492.                 items.push(rows[i]);
  1493.             }
  1494.             for (i = 0; i < headers.length; ++i) {
  1495.                 headers[i].removeAttribute('data-sort-direction');
  1496.                 if (headers[i].children.length > 0) {
  1497.                     headers[i].children[0].innerHTML = '';
  1498.                 }
  1499.             }
  1500.             header.setAttribute('data-sort-direction', (-1*direction).toString());
  1501.             header.children[0].innerHTML = direction > 0 ? '<span class=\"text-muted\">&#9650;</span>' : '<span class=\"text-muted\">&#9660;</span>';
  1502.             items.sort(function(a, b) {
  1503.                 return direction * (parseFloat(a.children[column].innerHTML) - parseFloat(b.children[column].innerHTML));
  1504.             });
  1505.             for (i = 0; i < items.length; ++i) {
  1506.                 Sfjs.removeClass(items[i], i % 2 ? 'even' : 'odd');
  1507.                 Sfjs.addClass(items[i], i % 2 ? 'odd' : 'even');
  1508.                 target.appendChild(items[i]);
  1509.             }
  1510.         }
  1511.         if (navigator.clipboard) {
  1512.             document.querySelectorAll('[data-clipboard-text]').forEach(function(button) {
  1513.                 Sfjs.removeClass(button, 'hidden');
  1514.                 button.addEventListener('click', function() {
  1515.                     navigator.clipboard.writeText(button.getAttribute('data-clipboard-text'));
  1516.                 })
  1517.             });
  1518.         }
  1519.         //]]></script>
  1520. {% endblock %}
  1521. {% macro render_simple_table(label1, label2, data) %}
  1522.     <table>
  1523.         <thead>
  1524.         <tr>
  1525.             <th scope=\"col\" class=\"key\">{{ label1 }}</th>
  1526.             <th scope=\"col\">{{ label2 }}</th>
  1527.         </tr>
  1528.         </thead>
  1529.         <tbody>
  1530.         {% for key, value in data %}
  1531.             <tr>
  1532.                 <th scope=\"row\">{{ key }}</th>
  1533.                 <td>{{ value }}</td>
  1534.             </tr>
  1535.         {% endfor %}
  1536.         </tbody>
  1537.     </table>
  1538. {% endmacro %}
  1539. ""@Doctrine/Collector/db.html.twig""/home/bestofi/bestof/vendor/doctrine/doctrine-bundle/Resources/views/Collector/db.html.twig");
  1540.     }
  1541. }