Symfony\Component\Validator\ExecutionContext::getPropertyPath PHP Method

getPropertyPath() public method

public getPropertyPath ( )
    public function getPropertyPath()
    {
        return $this->propertyPath;
    }

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function isVoteValid(ExecutionContext $context)
 {
     if (!$this->checkValue($this->value)) {
         $message = 'A vote cannot have a 0 value';
         $propertyPath = $context->getPropertyPath() . '.value';
         $context->addViolationAtPath($propertyPath, $message);
     }
 }
All Usage Examples Of Symfony\Component\Validator\ExecutionContext::getPropertyPath