[Form] Clarified the usage of "constraints" in the UPGRADE file
This commit is contained in:
parent
af41a1a550
commit
14225067eb
@ -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
|
||||
|
Reference in New Issue
Block a user