symfony/symfony — pull request #4861 by olegstepura (2012-07-11 15:02:41+00:00)
Title: [Validator] "Any" validation constraint

Bug fix: no
Feature addition: **yes**
Backwards compatibility break: no
Symfony2 tests pass: yes
Todo: documentation (hopefully not me)
License of the code: MIT
Documentation PR: none

Here is proposal for `AnyOf` validation constraint. It's used to validate against **any** of given child validation constraints. If any of child validation constraints will pass validation of given value then `AnyOf` will pass as well.

``` php