PageRenderTime 56ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/app/cache/dev/twig/09/35/4e97097445fbf98dcfcfb924cafd.php

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