[Form] Clarified the usage of "constraints" in the UPGRADE file

This commit is contained in:
Bernhard Schussek 2012-05-22 11:22:27 +02:00
parent af41a1a550
commit 14225067eb
1 changed files with 11 additions and 0 deletions

View File

@ -559,6 +559,17 @@
));
```
Unlike previously, you can also pass a list of constraints now:
```
$builder->add('name', 'text', array(
'constraints' => array(
new NotBlank(),
new MinLength(3),
),
));
```
### Validator
* The methods `setMessage()`, `getMessageTemplate()` and