MAPG-243 replace and adapt to soko-web

This commit is contained in:
bence committed 2023-04-07 21:10:14 +02:00
1 parent 0bfebec8ca
commit c565fc2b65
40 files changed
+146 -129

No files matched your search

+3 -4
View File
@@ -1,14 +1,13 @@
<?php namespace MapGuesser\Repository;
use Generator;
use MapGuesser\Database\Query\Select;
use SokoWeb\Database\Query\Select;
use MapGuesser\PersistentData\Model\Challenge;
use MapGuesser\PersistentData\Model\Guess;
use MapGuesser\PersistentData\Model\User;
use MapGuesser\PersistentData\Model\UserInChallenge;
use MapGuesser\PersistentData\Model\Place;
use MapGuesser\PersistentData\Model\PlaceInChallenge;
use MapGuesser\PersistentData\PersistentDataManager;
use SokoWeb\PersistentData\PersistentDataManager;
class GuessRepository
{
@@ -79,7 +78,7 @@ class GuessRepository
$necessaryRelations = [PlaceInChallenge::class];
$withRelations = array_unique(array_merge($withRelations, $necessaryRelations));
}
$select = new Select(\Container::$dbConnection);
$select->where('challenge_id', '=', $challenge->getId());
$select->where('round', '=', $round);