public function ConstraintViolationBuilder::atPath in Plug 7
Stores the property path at which the violation should be generated.
The passed path will be appended to the current property path of the execution context.
Parameters
string $path The property path:
Return value
ConstraintViolationBuilderInterface This builder
Overrides ConstraintViolationBuilderInterface::atPath
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ ConstraintViolationBuilder.php, line 107
Class
- ConstraintViolationBuilder
- Default implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function atPath($path) {
$this->propertyPath = PropertyPath::append($this->propertyPath, $path);
return $this;
}