Skip to content

Commit 90e5e80

Browse files
tolbierweaverryan
authored andcommitted
min_length is no longer an option at the documentation: http://symfony.com/doc/current/reference/forms/types/text.html
This option has been removed here.
1 parent e6bec24 commit 90e5e80

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

book/forms.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -528,13 +528,10 @@ the correct values of a number of field options.
528528
(i.e. is the field ``nullable``). This is very useful, as your client-side
529529
validation will automatically match your validation rules.
530530

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+
538535
.. note::
539536

540537
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.
543540
If you'd like to change one of the guessed values, you can override it by
544541
passing the option in the options field array::
545542

546-
->add('task', null, array('min_length' => 4))
543+
->add('task', null, array('max_length' => 4))
547544

548545
.. index::
549546
single: Forms; Rendering in a Template

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy