Skip to content

Commit

Permalink
Removing some outdated references to MinLength
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverryan committed Jan 3, 2013
1 parent bd21918 commit 393e1d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions book/forms.rst
Expand Up @@ -1541,17 +1541,17 @@ but here's a short example:

.. code-block:: php
use Symfony\Component\Validator\Constraints\MinLength;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
$builder
->add('firstName', 'text', array(
'constraints' => new MinLength(3),
'constraints' => new Length(array('min' => 3)),
))
->add('lastName', 'text', array(
'constraints' => array(
new NotBlank(),
new MinLength(3),
new Length(array('min' => 3)),
),
))
;
Expand Down
2 changes: 1 addition & 1 deletion reference/constraints/All.rst
Expand Up @@ -82,7 +82,7 @@ entry in that array:
$metadata->addPropertyConstraint('favoriteColors', new Assert\All(array(
'constraints' => array(
new Assert\NotBlank(),
new Assert\MinLength(array('limit' => 5)),
new Assert\Length(array('limit' => 5)),
),
)));
}
Expand Down

0 comments on commit 393e1d8

Please sign in to comment.