Explorar o código

agregue em como variable que contiene el entity_manager

Luciano Andrade %!s(int64=7) %!d(string=hai) anos
pai
achega
98285199b5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Services/TemplateService.php

+ 1 - 0
Services/TemplateService.php

@@ -52,6 +52,7 @@ class TemplateService
     {
         $content = null;
         $template = $this->getTemplateByName($name);
+	$params = array('em' => $this->entityManager) + $params;
         if (!is_null($template)) {
             $content = $this->render($template, $params);
 	    var_dump($content);