MAPG-119 fix maps query

This commit is contained in:
Bence Pőcze 2020-06-10 23:11:55 +02:00
parent 3fb538469b
commit 5a1c384c17

View File

@ -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();