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