From eda044117088aedff1449e7170b0e878e3c93673 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 20 Oct 2016 09:36:24 +0200 Subject: [PATCH] use FCQN to reference the form type in add() --- forms.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forms.rst b/forms.rst index f07a0180ac6..63c9e36613f 100644 --- a/forms.rst +++ b/forms.rst @@ -493,7 +493,7 @@ the documentation for each type. :ref:`disable HTML5 validation ` or set the ``required`` option on your field to ``false``:: - ->add('dueDate', 'date', array( + ->add('dueDate', DateType::class, array( 'widget' => 'single_text', 'required' => false ))