use sql field names with tables where join happens
mapguesser/pipeline/pr-develop This commit looks good

This commit is contained in:
bence committed 2023-05-02 18:10:22 +02:00
1 parent afd58bb91b
commit c02e35580f
5 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -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);