File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -528,13 +528,10 @@ the correct values of a number of field options.
528
528
(i.e. is the field ``nullable ``). This is very useful, as your client-side
529
529
validation will automatically match your validation rules.
530
530
531
- * ``min_length ``: If the field is some sort of text field, then the ``min_length ``
532
- option can be guessed from the validation constrains (if ``MinLength ``
533
- or ``Min `` is used) or from the Doctrine metadata (via the field's length).
534
-
535
- * ``max_length ``: Similar to ``min_length ``, the maximum length can also
536
- be guessed.
537
-
531
+ * ``max_length ``: If the field is some sort of text field, then the ``max_length ``
532
+ option can be guessed from the validation constrains (if ``MaxLength ``
533
+ is used) or from the Doctrine metadata (via the field's length).
534
+
538
535
.. note ::
539
536
540
537
These field options are *only * guessed if you're using Symfony to guess
@@ -543,7 +540,7 @@ the correct values of a number of field options.
543
540
If you'd like to change one of the guessed values, you can override it by
544
541
passing the option in the options field array::
545
542
546
- ->add('task', null, array('min_length ' => 4))
543
+ ->add('task', null, array('max_length ' => 4))
547
544
548
545
.. index ::
549
546
single: Forms; Rendering in a Template
You can’t perform that action at this time.
0 commit comments