Permalink
Browse files

Removing some outdated references to MinLength

  • Loading branch information...
1 parent bd21918 commit 393e1d83eac62fdd76ab17b9072610e4192ee233 @weaverryan weaverryan committed Jan 3, 2013
Showing with 4 additions and 4 deletions.
  1. +3 −3 book/forms.rst
  2. +1 −1 reference/constraints/All.rst
View
@@ -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)),
),
))
;
@@ -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)),
),
)));
}

0 comments on commit 393e1d8

Please sign in to comment.