diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index c8faf03578..dad88e9117 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -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