Commit 8e8e921e298936ce60a3f546d1ee035efc655012
1 parent
ae1c349e
Exists in
master
and in
1 other branch
Correção de Lista de Usb Device cadastrados
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
src/Cacic/CommonBundle/Entity/UsbDeviceRepository.php
... | ... | @@ -13,18 +13,14 @@ use Doctrine\ORM\EntityRepository; |
13 | 13 | class UsbDeviceRepository extends EntityRepository |
14 | 14 | { |
15 | 15 | |
16 | - public function paginar( \Knp\Component\Pager\Paginator $paginator, $page = 1 ) | |
16 | + public function paginar() | |
17 | 17 | { |
18 | 18 | $_dql = "SELECT u.idUsbDevice, u.nmUsbDevice, u.teObservacao, u.dtRegistro, v.nmUsbVendor, v.idUsbVendor |
19 | 19 | FROM CacicCommonBundle:UsbDevice u |
20 | 20 | JOIN u.idUsbVendor v |
21 | 21 | GROUP BY u, v"; |
22 | 22 | |
23 | - return $paginator->paginate( | |
24 | - $this->getEntityManager()->createQuery( $_dql )->getArrayResult(), | |
25 | - $page, | |
26 | - 10 | |
27 | - ); | |
23 | + return $this->getEntityManager()->createQuery( $_dql )->getArrayResult(); | |
28 | 24 | } |
29 | 25 | |
30 | 26 | /** | ... | ... |