Skip to content

Commit 4f87cbd

Browse files
Explicitly map problem entity for analysis now that we disabled auto mapping
1 parent fe734bc commit 4f87cbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/src/Controller/Jury/AnalysisController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use App\Service\StatisticsService;
1111
use Doctrine\ORM\EntityManagerInterface;
1212
use Doctrine\ORM\Query\Expr;
13+
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
1314
use Symfony\Component\HttpKernel\Attribute\MapQueryParameter;
1415
use Symfony\Component\Security\Http\Attribute\IsGranted;
1516
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
@@ -99,6 +100,7 @@ public function teamAction(Team $team): Response
99100

100101
#[Route(path: '/problem/{probid}', name: 'analysis_problem')]
101102
public function problemAction(
103+
#[MapEntity(id: 'probid')]
102104
Problem $problem,
103105
#[MapQueryParameter]
104106
?string $view = null

0 commit comments

Comments
 (0)