Removed duplicated content

This commit is contained in:
Richard Miller 2012-04-11 12:34:00 +01:00
parent 60d9aff29a
commit 6433ca0936
1 changed files with 0 additions and 28 deletions

View File

@ -251,34 +251,6 @@
}
}
```
* The method `setPropertyPath()` in the ExecutionContext class
was removed.
You should use the `addViolationAtSubPath()` method on the
`ExecutionContext` object instead.
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.