mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
[user list] order users by username
This commit is contained in:
parent
0a0854d4cf
commit
b1ae55ba80
@ -30,7 +30,9 @@ class UserController extends Controller
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
$entities = $em->getRepository('ChillMainBundle:User')->findAll();
|
||||
$entities = $em->createQuery('SELECT u FROM ChillMainBundle:User u '
|
||||
. 'ORDER BY u.username')
|
||||
->getResult();
|
||||
|
||||
return $this->render('ChillMainBundle:User:index.html.twig', array(
|
||||
'entities' => $entities,
|
||||
|
Loading…
x
Reference in New Issue
Block a user