8000
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 8497373 commit 4073ce5Copy full SHA for 4073ce5
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