We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56f05a8 commit 226f4b9Copy full SHA for 226f4b9
form/form_collections.rst
@@ -598,12 +598,8 @@ the relationship between the removed ``Tag`` and ``Task`` object.
598
599
class TaskController extends AbstractController
600
{
601
- public function edit($id, Request $request, EntityManagerInterface $entityManager): Response
+ public function edit(Task $task, Request $request, EntityManagerInterface $entityManager): Response
602
603
- if (null === $task = $entityManager->getRepository(Task::class)->find($id)) {
604
- throw $this->createNotFoundException('No task found for id '.$id);
605
- }
606
-
607
$originalTags = new ArrayCollection();
608
609
// Create an ArrayCollection of the current Tag objects in the database
0 commit comments