From 6433ca09369d40453c985bf07f71772a84b6344d Mon Sep 17 00:00:00 2001 From: Richard Miller Date: Wed, 11 Apr 2012 12:34:00 +0100 Subject: [PATCH] Removed duplicated content --- UPGRADE-2.1.md | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 6071be1911..a73fdd9bee 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -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.