validateValue(mixed $value, Constraint|Constraint[] $constraints, string $subPath = '', null|string|string[] $groups = null)
deprecated
deprecated
since version 2.5, to be removed in 3.0. Use {@link Context\ExecutionContextInterface::getValidator()} instead.
Validates a value against a constraint. Use the parameter $subPath to adapt the property path for the validated value. For example, take the following object graph:
(Person)---($address: Address)---($street: string)