Commit a91bd069bf2fbcc421b2ee8bfaedd893be123278

Authored by Bruno Menezes
1 parent 6a9b39ab
Exists in master and in 1 other branch 3.1

alterando template

src/Cacic/CommonBundle/Entity/SoftwareRepository.php
@@ -72,7 +72,7 @@ class SoftwareRepository extends EntityRepository @@ -72,7 +72,7 @@ class SoftwareRepository extends EntityRepository
72 * 72 *
73 * Método de listagem dos Softwares cadastrados que não estão associados a nenhuma máquina 73 * Método de listagem dos Softwares cadastrados que não estão associados a nenhuma máquina
74 */ 74 */
75 - public function listarNaoUsados( \Knp\Component\Pager\Paginator $paginator, $page = 1) 75 + public function listarNaoUsados()
76 { 76 {
77 $qb = $this->createQueryBuilder('sw') 77 $qb = $this->createQueryBuilder('sw')
78 ->select('sw.nmSoftware, sw.idSoftware') 78 ->select('sw.nmSoftware, sw.idSoftware')
@@ -81,11 +81,8 @@ class SoftwareRepository extends EntityRepository @@ -81,11 +81,8 @@ class SoftwareRepository extends EntityRepository
81 ->groupBy('sw.nmSoftware,sw.idSoftware') 81 ->groupBy('sw.nmSoftware,sw.idSoftware')
82 ->orderBy('sw.nmSoftware','ASC'); 82 ->orderBy('sw.nmSoftware','ASC');
83 83
84 - return $paginator->paginate(  
85 - $qb->getQuery()->execute(),  
86 - $page,  
87 - 10  
88 - ); 84 + return $qb->getQuery()->execute();
  85 +
89 } 86 }
90 87
91 /** 88 /**