symfony/symfony — pull request #11505 by webmozart (2014-07-29 10:23:12+00:00)
Title: [Validator] Fixed group handling in composite constraints

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #4453
| License | MIT
| Doc PR | TODO

With this PR, it finally becomes possible to set the groups of nested constraints in All and Collection:

```php
/**
* @Assert\Collection({
* "foo" = @Assert\NotNull(groups = "Strict"),
* "bar" = @Assert\NotBlank(groups = "Regular"),
* })
*/
private $attr;
```

The group logic is implemented as described in [this comment](https://github.com/symfony/symfony/pull/4453#issuecomment-16513727).

This PR supports the implementation of #9888 which should now become fairly simple.