Merged in hotfix/MAPG-198-fix-not-working-game (pull request #176)
MAPG-198 re-add table name to Select
This commit is contained in:
commit
f2736d4d6e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user