MAPG-235 refactor: renamed fields in challenge related tables

This commit is contained in:
balazs committed 2021-05-16 13:14:00 +02:00
1 parent 7a1674fdd0
commit 7792f1c3ff
8 files changed
+36 -38

No files matched your search

+2 -2
View File
@@ -183,7 +183,7 @@ class PlaceRepository
$select = new Select(\Container::$dbConnection);
$select->innerJoin('place_in_challenge', ['places', 'id'], '=', ['place_in_challenge', 'place_id']);
$select->where('challenge_id', '=', $challenge->getId());
$select->orderBy('order');
$select->orderBy('round');
$select->limit(1, $round);
return $this->pdm->selectFromDb($select, Place::class);
@@ -194,7 +194,7 @@ class PlaceRepository
$select = new Select(\Container::$dbConnection);
$select->innerJoin('place_in_challenge', ['places', 'id'], '=', ['place_in_challenge', 'place_id']);
$select->where('challenge_id', '=', $challenge->getId());
$select->orderBy('order');
$select->orderBy('round');
yield from $this->pdm->selectMultipleFromDb($select, Place::class);
}