Open pawaclawczyk opened 10 years ago
The method setPropertyPath() in the ExecutionContext class was removed.
setPropertyPath()
You should use the addViolationAtSubPath() method on the ExecutionContext object instead.
addViolationAtSubPath()
ExecutionContext
Before:
public function isPropertyValid(ExecutionContext $context) { // ... $propertyPath = $context->getPropertyPath().'.property'; $context->setPropertyPath($propertyPath); $context->addViolation('Error Message', array(), null); }
After:
public function isPropertyValid(ExecutionContext $context) { // ... $context->addViolationAtSubPath('property', 'Error Message', array(), null); }
The method
setPropertyPath()
in the ExecutionContext class was removed.You should use the
addViolationAtSubPath()
method on theExecutionContext
object instead.Before:
After: