/app/cache/dev/twig/09/35/4e97097445fbf98dcfcfb924cafd.php
PHP | 590 lines | 479 code | 35 blank | 76 comment | 34 complexity | 9f24d037fdbf4823ab4920ae6895af9c MD5 | raw file
Possible License(s): Apache-2.0, LGPL-3.0, BSD-3-Clause, BSD-2-Clause
- <?php
- /* DoctrineBundle:Collector:db.html.twig */
- class __TwigTemplate_09354e97097445fbf98dcfcfb924cafd extends Twig_Template
- {
- public function __construct(Twig_Environment $env)
- {
- parent::__construct($env);
- $this->blocks = array(
- 'toolbar' => array($this, 'block_toolbar'),
- 'menu' => array($this, 'block_menu'),
- 'panel' => array($this, 'block_panel'),
- 'queries' => array($this, 'block_queries'),
- );
- }
- protected function doGetParent(array $context)
- {
- return $this->env->resolveTemplate((($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request"), "isXmlHttpRequest")) ? ("WebProfilerBundle:Profiler:ajax_layout.html.twig") : ("WebProfilerBundle:Profiler:layout.html.twig")));
- }
- protected function doDisplay(array $context, array $blocks = array())
- {
- $this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
- }
- // line 3
- public function block_toolbar($context, array $blocks = array())
- {
- // line 4
- echo " ";
- ob_start();
- // line 5
- echo " <img width=\"20\" height=\"28\" alt=\"Database\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAcCAYAAABh2p9gAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAQRJREFUeNpi/P//PwM1ARMDlcGogZQDlpMnT7pxc3NbA9nhQKxOpL5rQLwJiPeBsI6Ozl+YBOOOHTv+AOllQNwtLS39F2owKYZ/gRq8G4i3ggxEToggWzvc3d2Pk+1lNL4fFAs6ODi8JzdS7mMRVyDVoAMHDsANdAPiOCC+jCQvQKqBQB/BDbwBxK5AHA3E/kB8nKJkA8TMQBwLxaBIKQbi70AvTADSBiSadwFXpCikpKQU8PDwkGTaly9fHFigkaKIJid4584dkiMFFI6jkTJII0WVmpHCAixZQEXWYhDeuXMnyLsVlEQKI45qFBQZ8eRECi4DBaAlDqle/8A48ip6gAADANdQY88Uc0oGAAAAAElFTkSuQmCC\" />
- <span class=\"sf-toolbar-status";
- // line 6
- if ((50 < $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "querycount"))) {
- echo " sf-toolbar-status-yellow";
- }
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "querycount"), "html", null, true);
- echo "</span>
- ";
- // line 7
- if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "querycount") > 0)) {
- // line 8
- echo " <span class=\"sf-toolbar-info-piece-additional-detail\">in ";
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "time") * 1000)), "html", null, true);
- echo " ms</span>
- ";
- }
- // line 10
- echo " ";
- if (($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "invalidEntityCount") > 0)) {
- // line 11
- echo " <span class=\"sf-toolbar-info-piece-additional sf-toolbar-status sf-toolbar-status-red\"> </span>
- ";
- }
- // line 13
- echo " ";
- $context["icon"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 14
- echo " ";
- ob_start();
- // line 15
- echo " <div class=\"sf-toolbar-info-piece\">
- <b>DB Queries</b>
- <span>";
- // line 17
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "querycount"), "html", null, true);
- echo "</span>
- </div>
- <div class=\"sf-toolbar-info-piece\">
- <b>Query time</b>
- <span>";
- // line 21
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "time") * 1000)), "html", null, true);
- echo " ms</span>
- </div>
- <div class=\"sf-toolbar-info-piece\">
- <b>Invalid entities</b>
- <span class=\"sf-toolbar-status sf-toolbar-status-";
- // line 25
- echo ((($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "invalidEntityCount") > 0)) ? ("red") : ("green"));
- echo "\">";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "invalidEntityCount"), "html", null, true);
- echo "</span>
- </div>
- ";
- $context["text"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
- // line 28
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:toolbar_item.html.twig")->display(array_merge($context, array("link" => (isset($context["profiler_url"]) ? $context["profiler_url"] : $this->getContext($context, "profiler_url")))));
- }
- // line 31
- public function block_menu($context, array $blocks = array())
- {
- // line 32
- echo "<span class=\"label\">
- <span class=\"icon\"><img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAcCAYAAAB/E6/TAAABLUlEQVR42u3TP0vDQBiA8UK/gDiLzi0IhU4OEunk5OQUAhGSOBUCzqWfIKSzX8DRySF0URCcMjWLIJjFD9Cpk/D6HITecEPUuzhIAz8CIdyTP/f2iqI4qaqqDx8l5Ic2uIeP/bquezCokOAFF+oCN3t4gPzSEjc4NEPaCldQbzjELTYW0RJzHDchwwem+ons6ZBpLSJ7nueJC22h0V+FzmwWV0ee59vQNV67CGVZJmEYbkNjfpY6X6I0Qo4/3RMmTdDDspuQVsJvgkP3IdMbIkIjLPBoadG2646iKJI0Ta2wxm6OdnP0/Tk6DYJgHcfxpw21RtscDTDDnaVZ26474GkkSRIrrPEv5sgMTfHe+cA2O6wPH6vOBpYQNALneHb96XTEDI6dzpEZ0VzO0Rf3pP5LMLI4tAAAAABJRU5ErkJggg==\" alt=\"\" /></span>
- <strong>Doctrine</strong>
- <span class=\"count\">
- <span>";
- // line 36
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "querycount"), "html", null, true);
- echo "</span>
- <span>";
- // line 37
- echo twig_escape_filter($this->env, sprintf("%0.0f", ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "time") * 1000)), "html", null, true);
- echo " ms</span>
- </span>
- </span>
- ";
- }
- // line 42
- public function block_panel($context, array $blocks = array())
- {
- // line 43
- echo " ";
- if (("explain" == (isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")))) {
- // line 44
- echo " ";
- echo $this->env->getExtension('actions')->renderAction("DoctrineBundle:Profiler:explain", array("token" => (isset($context["token"]) ? $context["token"] : $this->getContext($context, "token")), "panel" => "db", "connectionName" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request"), "query"), "get", array(0 => "connection"), "method"), "query" => $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["app"]) ? $context["app"] : $this->getContext($context, "app")), "request"), "query"), "get", array(0 => "query"), "method")), array());
- // line 50
- echo " ";
- } else {
- // line 51
- echo " ";
- $this->displayBlock("queries", $context, $blocks);
- echo "
- ";
- }
- }
- // line 55
- public function block_queries($context, array $blocks = array())
- {
- // line 56
- echo " <h2>Queries</h2>
- ";
- // line 58
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "queries"));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["connection"] => $context["queries"]) {
- // line 59
- echo " <h3>Connection <em>";
- echo twig_escape_filter($this->env, (isset($context["connection"]) ? $context["connection"] : $this->getContext($context, "connection")), "html", null, true);
- echo "</em></h3>
- ";
- // line 60
- if (twig_test_empty((isset($context["queries"]) ? $context["queries"] : $this->getContext($context, "queries")))) {
- // line 61
- echo " <p>
- <em>No queries.</em>
- </p>
- ";
- } else {
- // line 65
- echo " <ul class=\"alt\" id=\"queriesPlaceholder-";
- echo twig_escape_filter($this->env, $this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "index"), "html", null, true);
- echo "\">
- ";
- // line 66
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["queries"]) ? $context["queries"] : $this->getContext($context, "queries")));
- $context['loop'] = array(
- 'parent' => $context['_parent'],
- 'index0' => 0,
- 'index' => 1,
- 'first' => true,
- );
- if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
- $length = count($context['_seq']);
- $context['loop']['revindex0'] = $length - 1;
- $context['loop']['revindex'] = $length;
- $context['loop']['length'] = $length;
- $context['loop']['last'] = 1 === $length;
- }
- foreach ($context['_seq'] as $context["i"] => $context["query"]) {
- // line 67
- echo " <li class=\"";
- echo twig_escape_filter($this->env, twig_cycle(array(0 => "odd", 1 => "even"), (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i"))), "html", null, true);
- echo "\" data-extra-info=\"";
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "executionMS") * 1000)), "html", null, true);
- echo "\" data-target-id=\"";
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "\">
- <div style=\"margin-top: 4px\" id=\"queryNo-";
- // line 68
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\">
- <div onclick=\"return expandQuery(this);\" title=\"Expand query\" data-target-id=\"code-";
- // line 69
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" style=\"cursor: pointer;\">
- <img alt=\"+\" src=\"";
- // line 70
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
- echo "\" style=\"display: inline;\" />
- <img alt=\"-\" src=\"";
- // line 71
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
- echo "\" style=\"display: none;\" />
- <span style=\"display: none\">Shrink query</span>
- <span id=\"smallcode-";
- // line 73
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\">
- ";
- // line 74
- echo $this->env->getExtension('doctrine_extension')->minifyQuery($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "sql"));
- echo "
- </span>
- </div>
- <code id=\"code-";
- // line 77
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\">
- ";
- // line 78
- echo SqlFormatter::format($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "sql"), (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"));
- echo "
- </code>
- <span id=\"original-query-";
- // line 80
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" style=\"display: none;\">
- ";
- // line 81
- echo $this->env->getExtension('doctrine_extension')->replaceQueryParameters($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "sql"), $this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "params"));
- echo "
- </span>
- <small>
- <strong>Parameters</strong>: ";
- // line 84
- echo twig_escape_filter($this->env, $this->env->getExtension('yaml')->encode($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "params")), "html", null, true);
- echo " <br />
- [<span id=\"expandParams-";
- // line 85
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" onclick=\"javascript:toggleRunnableQuery(this);\" target-data-id=\"original-query-";
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" style=\"cursor: pointer;\">Display runnable query</span>]<br/>
- <strong>Time</strong>: ";
- // line 86
- echo twig_escape_filter($this->env, sprintf("%0.2f", ($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "executionMS") * 1000)), "html", null, true);
- echo " ms
- </small>
- ";
- // line 88
- if ($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "explainable")) {
- // line 89
- echo " [<a href=\"";
- echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("_profiler", array("panel" => "db", "token" => (isset($context["token"]) ? $context["token"] : $this->getContext($context, "token")), "page" => "explain", "connection" => (isset($context["connection"]) ? $context["connection"] : $this->getContext($context, "connection")), "query" => (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")))), "html", null, true);
- echo "\" onclick=\"return explain(this);\" style=\"text-decoration: none;\" title=\"Explains the query\" data-target-id=\"explain-";
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" >
- <img alt=\"+\" src=\"";
- // line 90
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_more.gif"), "html", null, true);
- echo "\" style=\"display: inline; width: 12px; height: 12px;\" />
- <img alt=\"-\" src=\"";
- // line 91
- echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/framework/images/blue_picto_less.gif"), "html", null, true);
- echo "\" style=\"display: none; width: 12px; height: 12px;\" />
- <span style=\"vertical-align:top\">Explain query</span>
- </a>]
- ";
- } else {
- // line 95
- echo " This query cannot be explained
- ";
- }
- // line 97
- echo " </div>
- ";
- // line 98
- if ($this->getAttribute((isset($context["query"]) ? $context["query"] : $this->getContext($context, "query")), "explainable")) {
- // line 99
- echo " <div id=\"explain-";
- echo twig_escape_filter($this->env, (isset($context["i"]) ? $context["i"] : $this->getContext($context, "i")), "html", null, true);
- echo "-";
- echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute((isset($context["loop"]) ? $context["loop"] : $this->getContext($context, "loop")), "parent"), "loop"), "index"), "html", null, true);
- echo "\" class=\"loading\"></div>
- ";
- }
- // line 101
- echo " </li>
- ";
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['i'], $context['query'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 103
- echo " </ul>
- ";
- }
- // line 105
- echo " ";
- ++$context['loop']['index0'];
- ++$context['loop']['index'];
- $context['loop']['first'] = false;
- if (isset($context['loop']['length'])) {
- --$context['loop']['revindex0'];
- --$context['loop']['revindex'];
- $context['loop']['last'] = 0 === $context['loop']['revindex0'];
- }
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['connection'], $context['queries'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 106
- echo "
- <h2>Database Connections</h2>
- ";
- // line 109
- if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "connections")) {
- // line 110
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "connections")));
- // line 111
- echo " ";
- } else {
- // line 112
- echo " <p>
- <em>No connections.</em>
- </p>
- ";
- }
- // line 116
- echo "
- <h2>Entity Managers</h2>
- ";
- // line 119
- if ($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "managers")) {
- // line 120
- echo " ";
- $this->env->loadTemplate("WebProfilerBundle:Profiler:table.html.twig")->display(array("data" => $this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "managers")));
- // line 121
- echo " ";
- } else {
- // line 122
- echo " <p>
- <em>No entity managers.</em>
- </p>
- ";
- }
- // line 126
- echo "
- <h2>Mapping</h2>
- ";
- // line 129
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "entities"));
- foreach ($context['_seq'] as $context["manager"] => $context["classes"]) {
- // line 130
- echo " <h3>Manager <em>";
- echo twig_escape_filter($this->env, (isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager")), "html", null, true);
- echo "</em></h3>
- ";
- // line 131
- if (twig_test_empty((isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes")))) {
- // line 132
- echo " <p><em>No loaded entities.</em></p>
- ";
- } else {
- // line 134
- echo " <table>
- <thead>
- <tr>
- <th scope=\"col\">Class</th>
- <th scope=\"col\">Mapping errors</th>
- </tr>
- </thead>
- <tbody>
- ";
- // line 142
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["classes"]) ? $context["classes"] : $this->getContext($context, "classes")));
- foreach ($context['_seq'] as $context["_key"] => $context["class"]) {
- // line 143
- echo " <tr>
- <td>";
- // line 144
- echo twig_escape_filter($this->env, (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), "html", null, true);
- echo "</td>
- <td>
- ";
- // line 146
- if ($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : null), "mappingErrors", array(), "any", false, true), (isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager")), array(), "array", false, true), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), array(), "array", true, true)) {
- // line 147
- echo " <ul>
- ";
- // line 148
- $context['_parent'] = (array) $context;
- $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute((isset($context["collector"]) ? $context["collector"] : $this->getContext($context, "collector")), "mappingErrors"), (isset($context["manager"]) ? $context["manager"] : $this->getContext($context, "manager")), array(), "array"), (isset($context["class"]) ? $context["class"] : $this->getContext($context, "class")), array(), "array"));
- foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
- // line 149
- echo " <li>";
- echo twig_escape_filter($this->env, (isset($context["error"]) ? $context["error"] : $this->getContext($context, "error")), "html", null, true);
- echo "</li>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 151
- echo " </ul>
- ";
- } else {
- // line 153
- echo " Valid
- ";
- }
- // line 155
- echo " </td>
- </tr>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['class'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 158
- echo " </tbody>
- </table>
- ";
- }
- // line 161
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['manager'], $context['classes'], $context['_parent'], $context['loop']);
- $context = array_merge($_parent, array_intersect_key($context, $_parent));
- // line 162
- echo "
- <script type=\"text/javascript\">//<![CDATA[
- function explain(link) {
- \"use strict\";
- var imgs = link.children,
- target = link.getAttribute('data-target-id');
- Sfjs.toggle(target, imgs[0], imgs[1])
- .load(
- target,
- link.href,
- null,
- function(xhr, el) {
- el.innerHTML = 'An error occurred while loading the details';
- Sfjs.removeClass(el, 'loading');
- }
- );
- return false;
- }
- function expandQuery(link) {
- var sections = link.children,
- target = link.getAttribute('data-target-id'),
- targetId = target.replace('code', ''),
- queriesParameters = document.getElementById('original-query' + targetId);
- if (queriesParameters.style.display != 'none') {
- queriesParameters.style.display = 'none';
- document.getElementById('small' + target).style.display = 'inline';
- document.getElementById('expandParams' + targetId).innerHTML = 'Display runnable query';
- }
- if (document.getElementById('small' + target).style.display != 'none') {
- document.getElementById('small' + target).style.display = 'none';
- document.getElementById(target).style.display = 'inline';
- sections[0].style.display = 'none';
- sections[1].style.display = 'inline';
- sections[2].style.display = 'inline';
- } else {
- document.getElementById('small' + target).style.display = 'inline';
- document.getElementById(target).style.display = 'none';
- sections[0].style.display = 'inline';
- sections[1].style.display = 'none';
- sections[2].style.display = 'none';
- }
- return false;
- }
- function toggleRunnableQuery(target) {
- var targetId = target.getAttribute('target-data-id').replace('original-query', ''),
- targetElement = document.getElementById(target.getAttribute('target-data-id')),
- elem;
- if (targetElement.style.display != 'block') {
- targetElement.style.display = 'block';
- target.innerHTML = 'Hide runnable query';
- document.getElementById('smallcode' + targetId).style.display = 'none';
- document.getElementById('code' + targetId).style.display = 'none';
- elem = document.getElementById('code' + targetId).parentElement.children[0];
- elem.children[0].style.display = 'inline';
- elem.children[1].style.display = 'none';
- elem.children[2].style.display = 'none';
- } else {
- targetElement.style.display = 'none';
- target.innerHTML = 'Display runnable query';
- document.getElementById('smallcode' + targetId).style.display = 'inline';
- }
- }
- //]]></script>
- <style>
- h3 {
- margin-bottom: 0px;
- }
- code {
- display: none;
- }
- code pre {
- padding: 5px;
- }
- </style>
- ";
- }
- public function getTemplateName()
- {
- return "DoctrineBundle:Collector:db.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 479 => 162, 473 => 161, 468 => 158, 460 => 155, 456 => 153, 452 => 151, 443 => 149, 439 => 148, 436 => 147, 434 => 146, 429 => 144, 426 => 143, 422 => 142, 412 => 134, 408 => 132, 406 => 131, 401 => 130, 397 => 129, 392 => 126, 386 => 122, 383 => 121, 380 => 120, 378 => 119, 373 => 116, 367 => 112, 364 => 111, 361 => 110, 359 => 109, 336 => 103, 321 => 101, 313 => 99, 304 => 95, 297 => 91, 293 => 90, 284 => 89, 277 => 86, 267 => 85, 263 => 84, 257 => 81, 251 => 80, 246 => 78, 223 => 71, 219 => 70, 213 => 69, 168 => 60, 146 => 58, 142 => 56, 141 => 51, 114 => 42, 78 => 21, 157 => 56, 136 => 44, 133 => 43, 85 => 25, 45 => 8, 57 => 11, 34 => 5, 31 => 4, 790 => 469, 787 => 468, 776 => 466, 772 => 465, 768 => 463, 755 => 462, 729 => 457, 726 => 456, 707 => 454, 690 => 453, 686 => 451, 682 => 450, 678 => 449, 674 => 448, 670 => 447, 666 => 446, 663 => 445, 661 => 444, 644 => 443, 633 => 442, 618 => 437, 613 => 435, 609 => 434, 606 => 433, 604 => 432, 590 => 431, 558 => 401, 540 => 398, 523 => 397, 520 => 396, 518 => 395, 513 => 393, 508 => 391, 181 => 66, 173 => 85, 166 => 82, 161 => 80, 156 => 77, 150 => 75, 144 => 53, 126 => 45, 112 => 52, 109 => 41, 28 => 3, 205 => 71, 178 => 66, 176 => 65, 170 => 61, 160 => 59, 132 => 47, 102 => 30, 90 => 41, 81 => 22, 204 => 94, 191 => 70, 185 => 68, 167 => 64, 164 => 63, 153 => 54, 147 => 55, 138 => 45, 134 => 54, 127 => 52, 122 => 43, 95 => 34, 91 => 35, 87 => 40, 84 => 28, 49 => 13, 27 => 3, 77 => 24, 71 => 17, 68 => 30, 62 => 27, 58 => 25, 56 => 13, 44 => 10, 388 => 160, 385 => 159, 379 => 158, 377 => 157, 370 => 156, 366 => 155, 362 => 153, 360 => 152, 357 => 151, 354 => 106, 352 => 149, 344 => 147, 342 => 146, 339 => 145, 330 => 140, 327 => 139, 320 => 135, 314 => 131, 311 => 98, 308 => 97, 306 => 128, 301 => 125, 292 => 120, 289 => 119, 287 => 118, 282 => 88, 280 => 114, 275 => 111, 273 => 110, 268 => 107, 264 => 105, 258 => 103, 254 => 101, 247 => 97, 240 => 77, 234 => 74, 231 => 88, 226 => 86, 221 => 83, 215 => 79, 212 => 78, 209 => 73, 207 => 68, 202 => 73, 196 => 92, 193 => 68, 190 => 89, 188 => 67, 183 => 63, 177 => 59, 174 => 67, 171 => 62, 169 => 56, 162 => 57, 143 => 48, 130 => 42, 107 => 36, 103 => 37, 97 => 23, 88 => 20, 82 => 19, 79 => 35, 76 => 34, 73 => 19, 67 => 15, 61 => 13, 47 => 9, 36 => 5, 70 => 20, 63 => 16, 46 => 7, 39 => 6, 22 => 1, 163 => 59, 155 => 58, 152 => 49, 149 => 48, 145 => 57, 139 => 55, 123 => 35, 120 => 50, 115 => 44, 111 => 37, 108 => 31, 106 => 36, 101 => 32, 98 => 31, 96 => 31, 92 => 33, 80 => 32, 74 => 21, 64 => 14, 55 => 24, 52 => 14, 50 => 10, 43 => 9, 41 => 8, 37 => 8, 32 => 4, 29 => 3, 356 => 163, 347 => 160, 343 => 159, 340 => 105, 335 => 157, 333 => 141, 325 => 138, 323 => 149, 316 => 145, 309 => 141, 302 => 137, 295 => 121, 288 => 129, 281 => 125, 274 => 121, 259 => 109, 252 => 138, 245 => 96, 238 => 97, 228 => 73, 225 => 88, 217 => 83, 214 => 82, 211 => 81, 206 => 78, 203 => 77, 198 => 67, 192 => 72, 184 => 70, 182 => 64, 172 => 64, 165 => 58, 158 => 56, 154 => 48, 151 => 53, 148 => 74, 140 => 42, 135 => 47, 131 => 51, 128 => 50, 125 => 44, 119 => 42, 116 => 35, 113 => 40, 110 => 42, 104 => 35, 100 => 24, 93 => 28, 89 => 26, 86 => 29, 83 => 28, 75 => 23, 72 => 22, 69 => 20, 66 => 20, 60 => 13, 54 => 10, 51 => 10, 48 => 8, 42 => 7, 38 => 6, 35 => 5, 33 => 4, 30 => 3,);
- }
- }