From 5a1c384c17d8f6cca37c4039a6ceae44623e855f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Wed, 10 Jun 2020 23:11:55 +0200 Subject: [PATCH] MAPG-119 fix maps query --- src/Controller/MapsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Controller/MapsController.php b/src/Controller/MapsController.php index d56dd59..95b37a0 100644 --- a/src/Controller/MapsController.php +++ b/src/Controller/MapsController.php @@ -32,6 +32,7 @@ class MapsController new RawExpression('COUNT(places.id) AS num_places') ]); $select->leftJoin('places', ['places', 'map_id'], '=', ['maps', 'id']); + $select->groupBy(['maps', 'id']); $select->orderBy('name'); $result = $select->execute();