MAPG-198 re-add table name to Select

(table name is used when counting)
This commit is contained in:
Bence Pőcze 2020-07-05 21:17:29 +02:00
parent da2c8d96a4
commit 88b9821c61
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -48,7 +48,8 @@ class PlaceRepository
private function selectRandomFromDbForMap(int $mapId, array $exclude): ?Place private function selectRandomFromDbForMap(int $mapId, array $exclude): ?Place
{ {
$select = new Select(\Container::$dbConnection); //TODO: omit table name here
$select = new Select(\Container::$dbConnection, 'places');
$select->where('id', 'NOT IN', $exclude); $select->where('id', 'NOT IN', $exclude);
$select->where('map_id', '=', $mapId); $select->where('map_id', '=', $mapId);