From 57fae2a796cabeef1dfcce238d9d0248cf5ead96 Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Fri, 13 Jan 2023 18:50:48 +0100 Subject: [PATCH] [Form] Add missing imports in unmapped fields example --- forms.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/forms.rst b/forms.rst index 8d39df0a113..6d234b482a1 100644 --- a/forms.rst +++ b/forms.rst @@ -968,6 +968,8 @@ example to add an *"I agree with these terms"* checkbox), set the ``mapped`` option to ``false`` in those fields:: // ... + use Symfony\Component\Form\Extension\Core\Type\CheckboxType; + use Symfony\Component\Form\Extension\Core\Type\SubmitType; use Symfony\Component\Form\FormBuilderInterface; class TaskType extends AbstractType