MAPG-235 queries with relations on any recursion level implemented
This commit is contained in:
1 parent
21e41b7c36
commit
44df94eb98
6 files changed
+102
-26
No files matched your search
@@ -143,7 +143,7 @@ class GameController
|
||||
// select places
|
||||
|
||||
$mapId = (int) $this->request->post('mapId');
|
||||
$map = $this->mapRepository->getById($mapId);
|
||||
// $map = $this->mapRepository->getById($mapId);
|
||||
|
||||
$places = $this->placeRepository->getRandomNPlaces($mapId, static::NUMBER_OF_ROUNDS, $userId);
|
||||
|
||||
@@ -242,6 +242,7 @@ class GameController
|
||||
$challenge = $this->challengeRepository->getByTokenStr($challengeToken_str);
|
||||
|
||||
if(!$this->userInChallengeRepository->isUserParticipatingInChallenge($userId, $challenge)) {
|
||||
// new player is joining
|
||||
$userInChallenge = new UserInChallenge();
|
||||
$userInChallenge->setUserId($userId);
|
||||
$userInChallenge->setChallenge($challenge);
|
||||
|
||||
Reference in new issue
Block a user