This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/UPGRADE-2.6.md
2014-08-19 11:39:05 +02:00

535 B

UPGRADE FROM 2.5 to 2.6

Validator

  • The internal method setConstraint() was added to Symfony\Component\Validator\Context\ExecutionContextInterface. With this method, the context is informed about the constraint that is currently being validated.

    If you implement this interface, make sure to add the method to your implementation. The easiest solution is to just implement an empty method:

    public function setConstraint(Constraint $constraint)
    {
    }