use sql field names with tables where join happens
mapguesser/pipeline/pr-develop This commit looks good
mapguesser/pipeline/pr-develop This commit looks good
This commit is contained in:
5 files changed
+21
-21
No files matched your search
@@ -22,7 +22,7 @@ class MapRepository
|
||||
$select = new Select(\Container::$dbConnection);
|
||||
$select->innerJoin('places', ['maps', 'id'], '=', ['places', 'map_id']);
|
||||
$select->innerJoin('place_in_challenge', ['places', 'id'], '=', ['place_in_challenge', 'place_id']);
|
||||
$select->where('challenge_id', '=', $challenge->getId());
|
||||
$select->where(['place_in_challenge', 'challenge_id'], '=', $challenge->getId());
|
||||
$select->limit(1);
|
||||
|
||||
return \Container::$persistentDataManager->selectFromDb($select, Map::class);
|
||||
|
||||
Reference in new issue
Block a user