From bb96dc61afb9bec0ac198e2f1b6d1b5f20feac2b Mon Sep 17 00:00:00 2001 From: Patrik Pacin Date: Mon, 1 Feb 2016 17:21:11 +0100 Subject: [PATCH] Update form_collections.rst removed new from new TaskType::class --- cookbook/form/form_collections.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/form/form_collections.rst b/cookbook/form/form_collections.rst index af2728b3aa6..b7cea09bba0 100644 --- a/cookbook/form/form_collections.rst +++ b/cookbook/form/form_collections.rst @@ -689,7 +689,7 @@ the relationship between the removed ``Tag`` and ``Task`` object. $originalTags->add($tag); } - $editForm = $this->createForm(new TaskType::class, $task); + $editForm = $this->createForm(TaskType::class, $task); $editForm->handleRequest($request);