Explorar el Código

Se requiere pasar el em o generarlo dentro de la función.

Maxi Schvindt hace 7 años
padre
commit
e777d27e0e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/FTTHBundle/Admin/ONUAdmin.php

+ 1 - 0
src/FTTHBundle/Admin/ONUAdmin.php

@@ -262,6 +262,7 @@ class ONUAdmin extends WorkflowBaseAdmin
 
                 $olt = $this->getRequest()->query->get('olt');
                 if(!is_null($olt)) {
+                    $em = $this->get("doctrine.orm.entity_manager");
                     
                     $query_olt = $em->createQueryBuilder('o')
                             ->select('o')