Add GET /interface/games/last

This commit is contained in:
Ruben 2016-11-03 02:19:07 +01:00
parent cc5c7ea11c
commit cce341b8de

View file

@ -31,7 +31,7 @@ class InterfaceControllerProvider implements ControllerProviderInterface
/* @var $hitRepo EmotionHero\Models\HitRepository */ /* @var $hitRepo EmotionHero\Models\HitRepository */
$hitRepo = $this->_eh->getEm()->getRepository(\EmotionHero\Models\Hit::class); $hitRepo = $this->_eh->getEm()->getRepository(\EmotionHero\Models\Hit::class);
$game = $gameRepo->findOneBy([], ['id'=>'DESC']); $game = $gameRepo->findOneBy([], ['createdAt'=>'DESC']);
// id // id
// score // score