From 6ed019efbcf166577a886cc1fad586a2604f57aa Mon Sep 17 00:00:00 2001 From: Josef Vitu Date: Sun, 31 Jul 2016 19:50:59 +0200 Subject: [PATCH] Fix missing function name Example in the 'Handling Form Submissions' section was invalid, as the name of a function to be called (isValid) was missing. --- forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms.rst b/forms.rst index 79b100b5297..fa48db276d1 100644 --- a/forms.rst +++ b/forms.rst @@ -234,7 +234,7 @@ your controller:: $form->handleRequest($request); - if ($form->isSubmitted() && $form->()) { + if ($form->isSubmitted() && $form->isValid()) { // $form->getData() holds the submitted values // but, the original `$task` variable has also been updated $task = $form->getData();