From 9073871536ea0b208f703a12d1d0e03c617024e2 Mon Sep 17 00:00:00 2001 From: Guillaume Arthaud Date: Wed, 15 Aug 2018 16:05:25 +0200 Subject: [PATCH] changed order changelog --- guigur.com/.idea/workspace.xml | 92 +++++++++++-------- .../Controller/ChangelogController.php | 2 +- 2 files changed, 56 insertions(+), 38 deletions(-) diff --git a/guigur.com/.idea/workspace.xml b/guigur.com/.idea/workspace.xml index dcad6d9..72df831 100644 --- a/guigur.com/.idea/workspace.xml +++ b/guigur.com/.idea/workspace.xml @@ -2,7 +2,7 @@ - + @@ -187,12 +205,12 @@ @@ -411,12 +429,12 @@ - + - @@ -541,20 +559,6 @@ - - - - - - - - - - - - - - @@ -662,20 +666,34 @@ - + - - - - - + + - + - - + + + + + + + + + + + + + + + + + + + diff --git a/guigur.com/src/GuigurFrontBundle/Controller/ChangelogController.php b/guigur.com/src/GuigurFrontBundle/Controller/ChangelogController.php index 53b3e32..b8d9103 100644 --- a/guigur.com/src/GuigurFrontBundle/Controller/ChangelogController.php +++ b/guigur.com/src/GuigurFrontBundle/Controller/ChangelogController.php @@ -11,7 +11,7 @@ public function indexAction() { $Changelogs = $this->getDoctrine() ->getRepository('GuigurFrontBundle:Changelogs') - ->findAll(); + ->findBy(array(), array('id' => 'DESC')); $catchPhrase = $this->get('guigur.catchphrase')->requestCatchPhrase('changelog'); return $this->render('GuigurFrontBundle:Default:changelog.html.twig', array("Catchphrase" => $catchPhrase, "Changelogs" => $Changelogs));