8000 Merge branch '2.7' into 2.8 · symfony/symfony-docs@cff2ee2 · GitHub
[go: up one dir, main page]

Skip to content

Commit cff2ee2

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Fix maxlength attribute for forms
2 parents 4
8000
e58220 + 1915270 commit cff2ee2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

forms.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,10 @@ the correct values of a number of field options.
581581
field ``nullable``). This is very useful, as your client-side validation will
582582
automatically match your validation rules.
583583

584-
``max_length``
585-
If the field is some sort of text field, then the ``max_length`` option can be
586-
guessed from the validation constraints (if ``Length`` or ``Range`` is used) or
587-
from the Doctrine metadata (via the field's length).
584+
``maxlength``
585+
If the field is some sort of text field, then the ``maxlength`` option attribute
586+
can be guessed from the validation constraints (if ``Length`` or ``Range`` is used)
587+
or from the Doctrine metadata (via the field's length).
588588

589589
.. caution::
590590

0 commit comments

Comments
 (0)
0