I\'m building a custom validator that needs to validate the value from TWO form fields in the db in order to get this constraint to pass.
My question is this: the Contra
Any custom validator that extends ConstraintValidator has access to the $context property. $context is an instance of ExecutionContext that gives you access to submitted data:
ConstraintValidator
$context
ExecutionContext
Example:
context->getRoot()->getData(); /* ... */ } }