adapt $withRelations usage to soko-web 0.7
mapguesser/pipeline/pr-develop This commit looks good

This commit is contained in:
bence committed 2023-04-30 21:01:15 +02:00
1 parent 4aadcab2d2
commit e70f8a9965
4 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -53,7 +53,7 @@ class GuessRepository
public function getAllInChallenge(Challenge $challenge, array $withRelations = []): Generator
{
if (count($withRelations)) {
$necessaryRelations = [PlaceInChallenge::class];
$necessaryRelations = ['place_in_challenge'];
$withRelations = array_unique(array_merge($withRelations, $necessaryRelations));
}
@@ -67,7 +67,7 @@ class GuessRepository
public function getAllInChallengeByRound(int $round, Challenge $challenge, array $withRelations = []): Generator
{
if (count($withRelations)) {
$necessaryRelations = [PlaceInChallenge::class];
$necessaryRelations = ['place_in_challenge'];
$withRelations = array_unique(array_merge($withRelations, $necessaryRelations));
}