symfony/symfony — pull request #11657 by webmozart (2014-08-12 13:52:53+00:00)
Title: [Validator] Added ConstraintViolation::getConstraint()

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

This PR adds a `getConstraint()` method to the `ConstraintViolation` in order to access the constraint causing the violation.

Related to #7276, #7273 and #9691.