MAPG-235 refactor: renamed fields in challenge related tables
This commit is contained in:
1 parent
7a1674fdd0
commit
7792f1c3ff
8 files changed
+36
-38
No files matched your search
@@ -153,7 +153,7 @@ class GameFlowController
|
||||
}
|
||||
|
||||
$challenge = $userInChallenge->getChallenge();
|
||||
$currentRound = $userInChallenge->getRound();
|
||||
$currentRound = $userInChallenge->getCurrentRound();
|
||||
$currentPlace = $this->placeRepository->getByRoundInChallenge($challenge, $currentRound);
|
||||
|
||||
$response = [];
|
||||
@@ -316,7 +316,7 @@ class GameFlowController
|
||||
}
|
||||
|
||||
$challenge = $userInChallenge->getChallenge();
|
||||
$currentRound = $userInChallenge->getRound();
|
||||
$currentRound = $userInChallenge->getCurrentRound();
|
||||
$currentPlace = $this->placeRepository->getByRoundInChallenge($challenge, $currentRound);
|
||||
$map = $this->mapRepository->getByPlace($currentPlace);
|
||||
$placeInChallenge = $this->placeInChallengeRepository->getByPlaceAndChallenge($currentPlace, $challenge);
|
||||
@@ -355,7 +355,7 @@ class GameFlowController
|
||||
// update round
|
||||
$nextRound = $currentRound + 1;
|
||||
|
||||
$userInChallenge->setRound($nextRound);
|
||||
$userInChallenge->setCurrentRound($nextRound);
|
||||
$this->pdm->saveToDb($userInChallenge);
|
||||
|
||||
if ($nextRound < static::NUMBER_OF_ROUNDS) {
|
||||
|
||||
Reference in new issue
Block a user