From 88b9821c61575cb5c82551d150456271975d9e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Sun, 5 Jul 2020 21:17:29 +0200 Subject: [PATCH] MAPG-198 re-add table name to Select (table name is used when counting) --- src/Repository/PlaceRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Repository/PlaceRepository.php b/src/Repository/PlaceRepository.php index 50f7366..cccca7a 100644 --- a/src/Repository/PlaceRepository.php +++ b/src/Repository/PlaceRepository.php @@ -48,7 +48,8 @@ class PlaceRepository 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('map_id', '=', $mapId);