From 72ba6c5ee7709e467726b546ac391a7ef9bd72ca Mon Sep 17 00:00:00 2001 From: Bruno Menezes Date: Fri, 16 May 2014 10:34:48 -0300 Subject: [PATCH] Alterando consulta --- src/Cacic/CommonBundle/Controller/UsuarioController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Cacic/CommonBundle/Controller/UsuarioController.php b/src/Cacic/CommonBundle/Controller/UsuarioController.php index 59d4a04..b9e533c 100644 --- a/src/Cacic/CommonBundle/Controller/UsuarioController.php +++ b/src/Cacic/CommonBundle/Controller/UsuarioController.php @@ -18,9 +18,9 @@ class UsuarioController extends Controller * Listagem dos usuários * @param $page */ - public function indexAction( $page ) + public function indexAction() { - $arrUsuarios = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Usuario' )->paginar( $this->get( 'knp_paginator' ), $page ); + $arrUsuarios = $this->getDoctrine()->getRepository( 'CacicCommonBundle:Usuario' )->listar(); return $this->render( 'CacicCommonBundle:Usuario:index.html.twig', array( 'usuarios' => $arrUsuarios ) ); } -- libgit2 0.21.2