-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Closed
Description
http://symfony.com/doc/current/cookbook/validation/custom_constraint.html#class-constraint-validator
In the section for Class Constraint Validator, the method addViolationAtSubPath() is used.
It doesn't exist any more.
Instead, you should show:
$propertyPath = $this->context->getPropertyPath() . 'foo';
$this->context->setPropertyPath($propertyPath);
$this->context->addViolation($constraint->getMessage(), array(), null);
Metadata
Metadata
Assignees
Labels
No labels