From 4f87cbd7b4357a00b8f3039c58f9e3db08ebb4df Mon Sep 17 00:00:00 2001 From: Nicky Gerritsen Date: Fri, 26 Jul 2024 16:32:14 +0200 Subject: [PATCH] Explicitly map problem entity for analysis now that we disabled auto mapping --- webapp/src/Controller/Jury/AnalysisController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/src/Controller/Jury/AnalysisController.php b/webapp/src/Controller/Jury/AnalysisController.php index 56506ba77f..891bfe7453 100644 --- a/webapp/src/Controller/Jury/AnalysisController.php +++ b/webapp/src/Controller/Jury/AnalysisController.php @@ -10,6 +10,7 @@ use App\Service\StatisticsService; use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\Query\Expr; +use Symfony\Bridge\Doctrine\Attribute\MapEntity; use Symfony\Component\HttpKernel\Attribute\MapQueryParameter; use Symfony\Component\Security\Http\Attribute\IsGranted; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; @@ -99,6 +100,7 @@ public function teamAction(Team $team): Response #[Route(path: '/problem/{probid}', name: 'analysis_problem')] public function problemAction( + #[MapEntity(id: 'probid')] Problem $problem, #[MapQueryParameter] ?string $view = null