Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88b9821c61
|
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user