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