Commit 72ba6c5ee7709e467726b546ac391a7ef9bd72ca
1 parent
f504dd64
Exists in
master
and in
1 other branch
Alterando consulta
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/Cacic/CommonBundle/Controller/UsuarioController.php
@@ -18,9 +18,9 @@ class UsuarioController extends Controller | @@ -18,9 +18,9 @@ class UsuarioController extends Controller | ||
18 | * Listagem dos usuários | 18 | * Listagem dos usuários |
19 | * @param $page | 19 | * @param $page |
20 | */ | 20 | */ |
21 | - public function indexAction( $page ) | 21 | + public function indexAction() |
22 | { | 22 | { |
23 | - $arrUsuarios = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Usuario' )->paginar( $this->get( 'knp_paginator' ), $page ); | 23 | + $arrUsuarios = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Usuario' )->listar(); |
24 | return $this->render( 'CacicCommonBundle:Usuario:index.html.twig', array( 'usuarios' => $arrUsuarios ) ); | 24 | return $this->render( 'CacicCommonBundle:Usuario:index.html.twig', array( 'usuarios' => $arrUsuarios ) ); |
25 | } | 25 | } |
26 | 26 |