MAPG-119 fix maps query
This commit is contained in:
parent
3fb538469b
commit
5a1c384c17
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user