Skip to content

Commit

Permalink
Explicitly map problem entity for analysis now that we disabled auto …
Browse files Browse the repository at this point in the history
…mapping
  • Loading branch information
nickygerritsen committed Jul 29, 2024
1 parent fe734bc commit 4f87cbd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webapp/src/Controller/Jury/AnalysisController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4f87cbd

Please sign in to comment.