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.
2 parents 820e943 + 4cf29bc commit 8ee991dCopy full SHA for 8ee991d
form/form_collections.rst
@@ -643,12 +643,8 @@ the relationship between the removed ``Tag`` and ``Task`` object.
643
644
class TaskController extends AbstractController
645
{
646
- public function edit($id, Request $request, EntityManagerInterface $entityManager): Response
+ public function edit(Task $task, Request $request, EntityManagerInterface $entityManager): Response
647
648
- if (null === $task = $entityManager->getRepository(Task::class)->find($id)) {
649
- throw $this->createNotFoundException('No task found for id '.$id);
650
- }
651
-
652
$originalTags = new ArrayCollection();
653
654
// Create an ArrayCollection of the current Tag objects in the database
0 commit comments