Commit aef763b741f8b1188e3943921ba006eaf456ff3a
1 parent
72ba6c5e
Exists in
master
and in
1 other branch
alterando consulta
Showing
1 changed file
with
7 additions
and
6 deletions
Show diff stats
src/Cacic/CommonBundle/Entity/RedeRepository.php
... | ... | @@ -34,7 +34,7 @@ class RedeRepository extends EntityRepository |
34 | 34 | * Método de listagem das Redes cadastradas e respectivas informações dos locais associados |
35 | 35 | */ |
36 | 36 | |
37 | - public function paginar( \Knp\Component\Pager\Paginator $paginator, $page = 1 ) | |
37 | + public function paginar() | |
38 | 38 | { |
39 | 39 | $qb = $this->createQueryBuilder('r') |
40 | 40 | ->select('r.idRede','r.nmRede','r.teIpRede','r.teServCacic', 'r.teServUpdates', |
... | ... | @@ -46,11 +46,12 @@ class RedeRepository extends EntityRepository |
46 | 46 | ->groupBy('r.idRede, r.nmRede, r.teIpRede, r.teServCacic, r.teServUpdates, r.teMascaraRede, l.sgLocal, s.nmServidorAutenticacao, uorg.nmUorg') |
47 | 47 | ->orderBy('r.teIpRede, l.sgLocal'); |
48 | 48 | |
49 | - return $paginator->paginate( | |
50 | - $qb->getQuery()->execute(), | |
51 | - $page, | |
52 | - 10 | |
53 | - ); | |
49 | + return $this->getEntityManager()->createQuery( $qb )->getArrayResult(); | |
50 | +// return $paginator->paginate( | |
51 | +// $qb->getQuery()->execute(), | |
52 | +// $page, | |
53 | +// 10 | |
54 | +// ); | |
54 | 55 | } |
55 | 56 | |
56 | 57 | public function listar() | ... | ... |