Commit d10b0a5c1b6166a4d5f3070b4653daecb583d662
1 parent
35c12e67
Exists in
master
and in
1 other branch
alterando template
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
src/Cacic/CommonBundle/Entity/SoftwareRepository.php
| @@ -55,7 +55,7 @@ class SoftwareRepository extends EntityRepository | @@ -55,7 +55,7 @@ class SoftwareRepository extends EntityRepository | ||
| 55 | * | 55 | * |
| 56 | * Método de listagem dos Softwares cadastrados que não foram classificados (sem Tipo de Software) | 56 | * Método de listagem dos Softwares cadastrados que não foram classificados (sem Tipo de Software) |
| 57 | */ | 57 | */ |
| 58 | - public function listarNaoClassificados( \Knp\Component\Pager\Paginator $paginator, $page = 1) | 58 | + public function listarNaoClassificados() |
| 59 | { | 59 | { |
| 60 | $qb = $this->createQueryBuilder('sw') | 60 | $qb = $this->createQueryBuilder('sw') |
| 61 | ->select('sw.nmSoftware','sw.idSoftware') | 61 | ->select('sw.nmSoftware','sw.idSoftware') |
| @@ -65,12 +65,7 @@ class SoftwareRepository extends EntityRepository | @@ -65,12 +65,7 @@ class SoftwareRepository extends EntityRepository | ||
| 65 | ->groupBy('sw.nmSoftware,sw.idSoftware') | 65 | ->groupBy('sw.nmSoftware,sw.idSoftware') |
| 66 | ->orderBy('sw.nmSoftware'); | 66 | ->orderBy('sw.nmSoftware'); |
| 67 | 67 | ||
| 68 | - return $paginator->paginate( | ||
| 69 | - $qb->getQuery()->execute(), | ||
| 70 | - $page, | ||
| 71 | - 10 | ||
| 72 | - ); | ||
| 73 | - | 68 | + return $qb->getQuery()->execute(); |
| 74 | } | 69 | } |
| 75 | 70 | ||
| 76 | /** | 71 | /** |