Symfony\Component\Validator\ValidatorInterface::validatePropertyValue
Validate a property of a value against a potential value.
The accepted values depend on the implementation.
Signature
public function validatePropertyValue(string
$containingValue,
[string
$property = null,
[string
$value = null,
[array|null
$groups = null]]] )
Parameters
$containingValue
— string- The value containing the property.
$property
— string- The name of the property to validate
$value
— string- The value to validate against the
constraints of the property. $groups
— object- The validation groups to validate.
Returns
- ConstraintViolationListInterface
- A list of constraint violations. If the
list is empty, validation succeeded.