Skip to content

Commit b7b0ef0

Browse files
author
Grégoire Paris
committed
max_length can also be guessed from Length
1 parent c588f8e commit b7b0ef0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

book/forms.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,9 @@ the correct values of a number of field options.
573573
validation will automatically match your validation rules.
574574

575575
* ``max_length``: If the field is some sort of text field, then the ``max_length``
576-
option can be guessed from the validation constraints (if ``MaxLength`` or ``Max``
577-
is used) or from the Doctrine metadata (via the field's length).
576+
option can be guessed from the validation constraints (if ``Length`` or
577+
``MaxLength`` or ``Max`` is used) or from the Doctrine metadata (via the
578+
field's length).
578579

579580
.. note::
580581

0 commit comments

Comments
 (0)