Przeglądaj źródła

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

Maxi Schvindt 7 lat temu
rodzic
commit
e777d27e0e
1 zmienionych plików z 1 dodań i 0 usunięć
  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')