PageRenderTime 39ms CodeModel.GetById 8ms app.highlight 24ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/prod/twig/92/86/ebb10e166dcf76843d5d12e980f1d2d37ce62954fcb897c9d84f45e3c14e.php

https://github.com/silvanei/treinaweb-symfony2-basico
PHP | 591 lines | 480 code | 35 blank | 76 comment | 34 complexity | a6e5688cd40c1706166652ec9056a673 MD5 | raw file
  1<?php
  2
  3/* DoctrineBundle:Collector:db.html.twig */
  4class __TwigTemplate_9286ebb10e166dcf76843d5d12e980f1d2d37ce62954fcb897c9d84f45e3c14e extends Twig_Template
  5{
  6    public function __construct(Twig_Environment $env)
  7    {
  8        parent::__construct($env);
  9
 10        $this->blocks = array(
 11            'toolbar' => array($this, 'block_toolbar'),
 12            'menu' => array($this, 'block_menu'),
 13            'panel' => array($this, 'block_panel'),
 14            'queries' => array($this, 'block_queries'),
 15        );
 16    }
 17
 18    protected function doGetParent(array $context)
 19    {
 20        return $this->env->resolveTemplate((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "request"), "isXmlHttpRequest")) ? ("WebProfilerBundle:Profiler:ajax_layout.html.twig") : ("WebProfilerBundle:Profiler:layout.html.twig")));
 21    }
 22
 23    protected function doDisplay(array $context, array $blocks = array())
 24    {
 25        $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
 26    }
 27
 28    // line 3
 29    public function block_toolbar($context, array $blocks = array())
 30    {
 31        // line 4
 32        echo "    ";
 33        ob_start();
 34        // line 5
 35        echo "        <img width=\"20\" height=\"28\" alt=\"Database\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAcCAYAAABh2p9gAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQRJREFUeNpi/P//PwM1ARMDlcGogZQDlpMnT7pxc3NbA9nhQKxOpL5rQLwJiPeBsI6Ozl+YBOOOHTv+AOllQNwtLS39F2owKYZ/gRq8G4i3ggxEToggWzvc3d2Pk+1lNL4fFAs6ODi8JzdS7mMRVyDVoAMHDsANdAPiOCC+jCQvQKqBQB/BDbwBxK5AHA3E/kB8nKJkA8TMQBwLxaBIKQbi70AvTADSBiSadwFXpCikpKQU8PDwkGTaly9fHFigkaKIJid4584dkiMFFI6jkTJII0WVmpHCAixZQEXWYhDeuXMnyLsVlEQKI45qFBQZ8eRECi4DBaAlDqle/8A48ip6gAADANdQY88Uc0oGAAAAAElFTkSuQmCC\" />
 36        <span class=\"sf-toolbar-status";
 37        // line 6
 38        if ((50 < $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "querycount"))) {
 39            echo " sf-toolbar-status-yellow";
 40        }
 41        echo "\">";
 42        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "querycount"), "html", null, true);
 43        echo "</span>
 44        ";
 45        // line 7
 46        if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "querycount") > 0)) {
 47            // line 8
 48            echo "            <span class=\"sf-toolbar-info-piece-additional-detail\">in ";
 49            echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "time") * 1000)), "html", null, true);
 50            echo " ms</span>
 51        ";
 52        }
 53        // line 10
 54        echo "        ";
 55        if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "invalidEntityCount") > 0)) {
 56            // line 11
 57            echo "            <span class=\"sf-toolbar-info-piece-additional sf-toolbar-status sf-toolbar-status-red\"> </span>
 58        ";
 59        }
 60        // line 13
 61        echo "    ";
 62        $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 63        // line 14
 64        echo "    ";
 65        ob_start();
 66        // line 15
 67        echo "        <div class=\"sf-toolbar-info-piece\">
 68            <b>DB Queries</b>
 69            <span>";
 70        // line 17
 71        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "querycount"), "html", null, true);
 72        echo "</span>
 73        </div>
 74        <div class=\"sf-toolbar-info-piece\">
 75            <b>Query time</b>
 76            <span>";
 77        // line 21
 78        echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "time") * 1000)), "html", null, true);
 79        echo " ms</span>
 80        </div>
 81        <div class=\"sf-toolbar-info-piece\">
 82            <b>Invalid entities</b>
 83            <span class=\"sf-toolbar-status sf-toolbar-status-";
 84        // line 25
 85        echo ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "invalidEntityCount") > 0)) ? ("red") : ("green"));
 86        echo "\">";
 87        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "invalidEntityCount"), "html", null, true);
 88        echo "</span>
 89        </div>
 90    ";
 91        $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 92        // line 28
 93        echo "    ";
 94        $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => (isset($context["profiler_url"]) ? $context["profiler_url"] : null))));
 95    }
 96
 97    // line 31
 98    public function block_menu($context, array $blocks = array())
 99    {
100        // line 32
101        echo "<span class=\"label\">
102    <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAB/E6/TAAABLUlEQVR42u3TP0vDQBiA8UK/gDiLzi0IhU4OEunk5OQUAhGSOBUCzqWfIKSzX8DRySF0URCcMjWLIJjFD9Cpk/D6HITecEPUuzhIAz8CIdyTP/f2iqI4qaqqDx8l5Ic2uIeP/bquezCokOAFF+oCN3t4gPzSEjc4NEPaCldQbzjELTYW0RJzHDchwwem+ons6ZBpLSJ7nueJC22h0V+FzmwWV0ee59vQNV67CGVZJmEYbkNjfpY6X6I0Qo4/3RMmTdDDspuQVsJvgkP3IdMbIkIjLPBoadG2646iKJI0Ta2wxm6OdnP0/Tk6DYJgHcfxpw21RtscDTDDnaVZ26474GkkSRIrrPEv5sgMTfHe+cA2O6wPH6vOBpYQNALneHb96XTEDI6dzpEZ0VzO0Rf3pP5LMLI4tAAAAABJRU5ErkJggg==\" alt=\"\" /></span>
103    <strong>Doctrine</strong>
104    <span class=\"count\">
105        <span>";
106        // line 36
107        echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "querycount"), "html", null, true);
108        echo "</span>
109        <span>";
110        // line 37
111        echo twig_escape_filter($this->env, sprintf("%0.0f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "time") * 1000)), "html", null, true);
112        echo " ms</span>
113    </span>
114</span>
115";
116    }
117
118    // line 42
119    public function block_panel($context, array $blocks = array())
120    {
121        // line 43
122        echo "    ";
123        if (("explain" == (isset($context["page"]) ? $context["page"] : null))) {
124            // line 44
125            echo "        ";
126            echo $this->env->getExtension('http_kernel')->renderFragment($this->env->getExtension('http_kernel')->controller("DoctrineBundle:Profiler:explain", array("token" => (isset($context["token"]) ? $context["token"] : null), "panel" => "db", "connectionName" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "request"), "query"), "get", array(0 => "connection"), "method"), "query" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : null), "request"), "query"), "get", array(0 => "query"), "method"))));
127            // line 49
128            echo "
129    ";
130        } else {
131            // line 51
132            echo "        ";
133            $this->displayBlock("queries", $context, $blocks);
134            echo "
135    ";
136        }
137    }
138
139    // line 55
140    public function block_queries($context, array $blocks = array())
141    {
142        // line 56
143        echo "    <h2>Queries</h2>
144
145    ";
146        // line 58
147        $context['_parent'] = (array) $context;
148        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "queries"));
149        $context['loop'] = array(
150          'parent' => $context['_parent'],
151          'index0' => 0,
152          'index'  => 1,
153          'first'  => true,
154        );
155        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
156            $length = count($context['_seq']);
157            $context['loop']['revindex0'] = $length - 1;
158            $context['loop']['revindex'] = $length;
159            $context['loop']['length'] = $length;
160            $context['loop']['last'] = 1 === $length;
161        }
162        foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
163            // line 59
164            echo "        <h3>Connection <em>";
165            echo twig_escape_filter($this->env, (isset($context["connection"]) ? $context["connection"] : null), "html", null, true);
166            echo "</em></h3>
167        ";
168            // line 60
169            if (twig_test_empty((isset($context["queries"]) ? $context["queries"] : null))) {
170                // line 61
171                echo "            <p>
172                <em>No queries.</em>
173            </p>
174        ";
175            } else {
176                // line 65
177                echo "            <ul class=\"alt\" id=\"queriesPlaceholder-";
178                echo twig_escape_filter($this->env, $this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "index"), "html", null, true);
179                echo "\">
180                ";
181                // line 66
182                $context['_parent'] = (array) $context;
183                $context['_seq'] = twig_ensure_traversable((isset($context["queries"]) ? $context["queries"] : null));
184                $context['loop'] = array(
185                  'parent' => $context['_parent'],
186                  'index0' => 0,
187                  'index'  => 1,
188                  'first'  => true,
189                );
190                if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
191                    $length = count($context['_seq']);
192                    $context['loop']['revindex0'] = $length - 1;
193                    $context['loop']['revindex'] = $length;
194                    $context['loop']['length'] = $length;
195                    $context['loop']['last'] = 1 === $length;
196                }
197                foreach ($context['_seq'] as $context["i"] => $context["query"]) {
198                    // line 67
199                    echo "                    <li class=\"";
200                    echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), (isset($context["i"]) ? $context["i"] : null)), "html", null, true);
201                    echo "\" data-extra-info=\"";
202                    echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "executionMS") * 1000)), "html", null, true);
203                    echo "\" data-target-id=\"";
204                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
205                    echo "\">
206                        <div style=\"margin-top: 4px\" id=\"queryNo-";
207                    // line 68
208                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
209                    echo "-";
210                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
211                    echo "\">
212                            <div onclick=\"return expandQuery(this);\" title=\"Expand query\" data-target-id=\"code-";
213                    // line 69
214                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
215                    echo "-";
216                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
217                    echo "\" style=\"cursor: pointer;\">
218                                <img alt=\"+\" src=\"";
219                    // line 70
220                    echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
221                    echo "\" style=\"display: inline;\" />
222                                <img alt=\"-\" src=\"";
223                    // line 71
224                    echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
225                    echo "\" style=\"display: none;\" />
226                                <span style=\"display: none\">Shrink query</span>
227                                <span id=\"smallcode-";
228                    // line 73
229                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
230                    echo "-";
231                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
232                    echo "\">
233                                    ";
234                    // line 74
235                    echo $this->env->getExtension('doctrine_extension')->minifyQuery($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "sql"));
236                    echo "
237                                </span>
238                            </div>
239                            <code id=\"code-";
240                    // line 77
241                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
242                    echo "-";
243                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
244                    echo "\">
245                                ";
246                    // line 78
247                    echo SqlFormatter::format($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "sql"), (isset($context["i"]) ? $context["i"] : null), $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"));
248                    echo "
249                            </code>
250                            <span id=\"original-query-";
251                    // line 80
252                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
253                    echo "-";
254                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
255                    echo "\" style=\"display: none;\">
256                                ";
257                    // line 81
258                    echo $this->env->getExtension('doctrine_extension')->replaceQueryParameters($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "sql"), $this->getAttribute((isset($context["query"]) ? $context["query"] : null), "params"));
259                    echo "
260                            </span>
261                            <small>
262                                <strong>Parameters</strong>: ";
263                    // line 84
264                    echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "params")), "html", null, true);
265                    echo " <br />
266                                [<span id=\"expandParams-";
267                    // line 85
268                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
269                    echo "-";
270                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
271                    echo "\" onclick=\"javascript:toggleRunnableQuery(this);\" target-data-id=\"original-query-";
272                    echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
273                    echo "-";
274                    echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
275                    echo "\" style=\"cursor: pointer;\">Display runnable query</span>]<br/>
276                                <strong>Time</strong>: ";
277                    // line 86
278                    echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "executionMS") * 1000)), "html", null, true);
279                    echo " ms
280                            </small>
281                            ";
282                    // line 88
283                    if ($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "explainable")) {
284                        // line 89
285                        echo "                                [<a href=\"";
286                        echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("panel" => "db", "token" => (isset($context["token"]) ? $context["token"] : null), "page" => "explain", "connection" => (isset($context["connection"]) ? $context["connection"] : null), "query" => (isset($context["i"]) ? $context["i"] : null))), "html", null, true);
287                        echo "\" onclick=\"return explain(this);\" style=\"text-decoration: none;\" title=\"Explains the query\" data-target-id=\"explain-";
288                        echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
289                        echo "-";
290                        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
291                        echo "\" >
292                                    <img alt=\"+\" src=\"";
293                        // line 90
294                        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
295                        echo "\" style=\"display: inline; width: 12px; height: 12px;\" />
296                                    <img alt=\"-\" src=\"";
297                        // line 91
298                        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
299                        echo "\" style=\"display: none; width: 12px; height: 12px;\" />
300                                    <span style=\"vertical-align:top\">Explain query</span>
301                                </a>]
302                            ";
303                    } else {
304                        // line 95
305                        echo "                                This query cannot be explained
306                            ";
307                    }
308                    // line 97
309                    echo "                        </div>
310                        ";
311                    // line 98
312                    if ($this->getAttribute((isset($context["query"]) ? $context["query"] : null), "explainable")) {
313                        // line 99
314                        echo "                        <div id=\"explain-";
315                        echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : null), "html", null, true);
316                        echo "-";
317                        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : null), "parent"), "loop"), "index"), "html", null, true);
318                        echo "\" class=\"loading\"></div>
319                        ";
320                    }
321                    // line 101
322                    echo "                    </li>
323                ";
324                    ++$context['loop']['index0'];
325                    ++$context['loop']['index'];
326                    $context['loop']['first'] = false;
327                    if (isset($context['loop']['length'])) {
328                        --$context['loop']['revindex0'];
329                        --$context['loop']['revindex'];
330                        $context['loop']['last'] = 0 === $context['loop']['revindex0'];
331                    }
332                }
333                $_parent = $context['_parent'];
334                unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
335                $context = array_intersect_key($context, $_parent) + $_parent;
336                // line 103
337                echo "            </ul>
338        ";
339            }
340            // line 105
341            echo "    ";
342            ++$context['loop']['index0'];
343            ++$context['loop']['index'];
344            $context['loop']['first'] = false;
345            if (isset($context['loop']['length'])) {
346                --$context['loop']['revindex0'];
347                --$context['loop']['revindex'];
348                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
349            }
350        }
351        $_parent = $context['_parent'];
352        unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
353        $context = array_intersect_key($context, $_parent) + $_parent;
354        // line 106
355        echo "
356    <h2>Database Connections</h2>
357
358    ";
359        // line 109
360        if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "connections")) {
361            // line 110
362            echo "        ";
363            $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "connections")));
364            // line 111
365            echo "    ";
366        } else {
367            // line 112
368            echo "        <p>
369            <em>No connections.</em>
370        </p>
371    ";
372        }
373        // line 116
374        echo "
375    <h2>Entity Managers</h2>
376
377    ";
378        // line 119
379        if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "managers")) {
380            // line 120
381            echo "        ";
382            $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "managers")));
383            // line 121
384            echo "    ";
385        } else {
386            // line 122
387            echo "        <p>
388            <em>No entity managers.</em>
389        </p>
390    ";
391        }
392        // line 126
393        echo "
394    <h2>Mapping</h2>
395
396    ";
397        // line 129
398        $context['_parent'] = (array) $context;
399        $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "entities"));
400        foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
401            // line 130
402            echo "        <h3>Manager <em>";
403            echo twig_escape_filter($this->env, (isset($context["manager"]) ? $context["manager"] : null), "html", null, true);
404            echo "</em></h3>
405        ";
406            // line 131
407            if (twig_test_empty((isset($context["classes"]) ? $context["classes"] : null))) {
408                // line 132
409                echo "            <p><em>No loaded entities.</em></p>
410        ";
411            } else {
412                // line 134
413                echo "            <table>
414                <thead>
415                <tr>
416                    <th scope=\"col\">Class</th>
417                    <th scope=\"col\">Mapping errors</th>
418                </tr>
419                </thead>
420                <tbody>
421                ";
422                // line 142
423                $context['_parent'] = (array) $context;
424                $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) ? $context["classes"] : null));
425                foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
426                    // line 143
427                    echo "                    <tr>
428                        <td>";
429                    // line 144
430                    echo twig_escape_filter($this->env, (isset($context["class"]) ? $context["class"] : null), "html", null, true);
431                    echo "</td>
432                        <td>
433                            ";
434                    // line 146
435                    if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "mappingErrors", array(), "any", false, true), (isset($context["manager"]) ? $context["manager"] : null), array(), "array", false, true), (isset($context["class"]) ? $context["class"] : null), array(), "array", true, true)) {
436                        // line 147
437                        echo "                                <ul>
438                                    ";
439                        // line 148
440                        $context['_parent'] = (array) $context;
441                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "mappingErrors"), (isset($context["manager"]) ? $context["manager"] : null), array(), "array"), (isset($context["class"]) ? $context["class"] : null), array(), "array"));
442                        foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
443                            // line 149
444                            echo "                                        <li>";
445                            echo twig_escape_filter($this->env, (isset($context["error"]) ? $context["error"] : null), "html", null, true);
446                            echo "</li>
447                                    ";
448                        }
449                        $_parent = $context['_parent'];
450                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
451                        $context = array_intersect_key($context, $_parent) + $_parent;
452                        // line 151
453                        echo "                                </ul>
454                            ";
455                    } else {
456                        // line 153
457                        echo "                                Valid
458                            ";
459                    }
460                    // line 155
461                    echo "                        </td>
462                    </tr>
463                ";
464                }
465                $_parent = $context['_parent'];
466                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
467                $context = array_intersect_key($context, $_parent) + $_parent;
468                // line 158
469                echo "                </tbody>
470            </table>
471        ";
472            }
473            // line 161
474            echo "    ";
475        }
476        $_parent = $context['_parent'];
477        unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
478        $context = array_intersect_key($context, $_parent) + $_parent;
479        // line 162
480        echo "
481    <script type=\"text/javascript\">//<![CDATA[
482        function explain(link) {
483            \"use strict\";
484
485            var imgs = link.children,
486                target = link.getAttribute('data-target-id');
487
488            Sfjs.toggle(target, imgs[0], imgs[1])
489                .load(
490                    target,
491                    link.href,
492                    null,
493                    function(xhr, el) {
494                        el.innerHTML = 'An error occurred while loading the details';
495                        Sfjs.removeClass(el, 'loading');
496                    }
497                );
498
499            return false;
500        }
501
502        function expandQuery(link) {
503            var sections = link.children,
504                target = link.getAttribute('data-target-id'),
505                targetId = target.replace('code', ''),
506                queriesParameters = document.getElementById('original-query' + targetId);
507
508            if (queriesParameters.style.display != 'none') {
509                queriesParameters.style.display = 'none';
510                document.getElementById('small' + target).style.display = 'inline';
511                document.getElementById('expandParams' + targetId).innerHTML = 'Display runnable query';
512            }
513
514            if (document.getElementById('small' + target).style.display != 'none') {
515                document.getElementById('small' + target).style.display = 'none';
516                document.getElementById(target).style.display = 'inline';
517
518                sections[0].style.display = 'none';
519                sections[1].style.display = 'inline';
520                sections[2].style.display = 'inline';
521            } else {
522                document.getElementById('small' + target).style.display = 'inline';
523                document.getElementById(target).style.display = 'none';
524
525                sections[0].style.display = 'inline';
526                sections[1].style.display = 'none';
527                sections[2].style.display = 'none';
528            }
529
530            return false;
531        }
532
533        function toggleRunnableQuery(target) {
534            var targetId = target.getAttribute('target-data-id').replace('original-query', ''),
535                targetElement = document.getElementById(target.getAttribute('target-data-id')),
536                elem;
537
538            if (targetElement.style.display != 'block') {
539                targetElement.style.display = 'block';
540                target.innerHTML = 'Hide runnable query';
541
542                document.getElementById('smallcode' + targetId).style.display = 'none';
543                document.getElementById('code' + targetId).style.display = 'none';
544
545                elem = document.getElementById('code' + targetId).parentElement.children[0];
546
547                elem.children[0].style.display = 'inline';
548                elem.children[1].style.display = 'none';
549                elem.children[2].style.display = 'none';
550
551            } else {
552                targetElement.style.display = 'none';
553                target.innerHTML = 'Display runnable query';
554
555                document.getElementById('smallcode' + targetId).style.display = 'inline';
556            }
557        }
558
559    //]]></script>
560
561    <style>
562        h3 {
563            margin-bottom: 0px;
564        }
565
566        code {
567            display: none;
568        }
569
570        code pre {
571            padding: 5px;
572        }
573    </style>
574";
575    }
576
577    public function getTemplateName()
578    {
579        return "DoctrineBundle:Collector:db.html.twig";
580    }
581
582    public function isTraitable()
583    {
584        return false;
585    }
586
587    public function getDebugInfo()
588    {
589        return array (  480 => 162,  474 => 161,  469 => 158,  461 => 155,  457 => 153,  453 => 151,  444 => 149,  440 => 148,  437 => 147,  435 => 146,  430 => 144,  427 => 143,  423 => 142,  413 => 134,  409 => 132,  407 => 131,  402 => 130,  398 => 129,  393 => 126,  387 => 122,  384 => 121,  381 => 120,  379 => 119,  374 => 116,  368 => 112,  365 => 111,  362 => 110,  360 => 109,  355 => 106,  341 => 105,  337 => 103,  322 => 101,  314 => 99,  312 => 98,  309 => 97,  305 => 95,  298 => 91,  294 => 90,  285 => 89,  283 => 88,  278 => 86,  268 => 85,  264 => 84,  258 => 81,  252 => 80,  247 => 78,  241 => 77,  229 => 73,  220 => 70,  214 => 69,  177 => 65,  169 => 60,  140 => 55,  132 => 51,  128 => 49,  111 => 37,  107 => 36,  61 => 13,  273 => 96,  269 => 94,  254 => 92,  246 => 90,  243 => 88,  240 => 86,  238 => 85,  235 => 74,  230 => 82,  227 => 81,  224 => 71,  221 => 77,  219 => 76,  217 => 75,  208 => 68,  204 => 72,  179 => 69,  159 => 61,  143 => 56,  135 => 53,  131 => 52,  119 => 42,  108 => 36,  102 => 32,  71 => 17,  67 => 15,  63 => 15,  59 => 14,  47 => 9,  38 => 6,  98 => 31,  93 => 28,  88 => 6,  78 => 21,  40 => 8,  87 => 25,  55 => 13,  44 => 7,  94 => 28,  89 => 20,  85 => 25,  79 => 18,  75 => 17,  72 => 16,  68 => 14,  56 => 9,  50 => 10,  201 => 92,  196 => 90,  183 => 82,  171 => 61,  166 => 71,  163 => 62,  158 => 67,  156 => 66,  151 => 63,  142 => 59,  138 => 54,  136 => 56,  123 => 47,  121 => 46,  117 => 44,  115 => 43,  105 => 40,  101 => 32,  91 => 27,  69 => 25,  66 => 15,  62 => 23,  49 => 19,  46 => 7,  35 => 5,  43 => 8,  41 => 9,  32 => 4,  28 => 3,  24 => 4,  31 => 4,  29 => 3,  26 => 5,  22 => 2,  27 => 4,  25 => 5,  21 => 2,  19 => 1,  209 => 82,  203 => 78,  199 => 67,  193 => 73,  189 => 71,  187 => 84,  182 => 66,  176 => 64,  173 => 65,  168 => 72,  164 => 59,  162 => 59,  154 => 58,  149 => 51,  147 => 58,  144 => 49,  141 => 48,  133 => 55,  130 => 41,  125 => 44,  122 => 43,  116 => 41,  112 => 42,  109 => 34,  106 => 33,  103 => 32,  99 => 31,  95 => 28,  92 => 21,  86 => 28,  82 => 22,  80 => 41,  73 => 19,  64 => 14,  60 => 13,  57 => 11,  54 => 10,  51 => 9,  48 => 8,  45 => 8,  42 => 7,  39 => 6,  36 => 5,  33 => 4,  30 => 3,);
590    }
591}