public function ExecutionContext::isConstraintValidated in Plug 7
Returns whether a constraint was validated for an object.
@internal Used by the validator engine. Should not be called by user code.
Parameters
string $cacheKey The hash of the object:
string $constraintHash The hash of the constraint:
Return value
bool Whether the constraint was already validated
Overrides ExecutionContextInterface::isConstraintValidated
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Context/ ExecutionContext.php, line 384
Class
- ExecutionContext
- The context used and created by {@link ExecutionContextFactory}.
Namespace
Symfony\Component\Validator\ContextCode
public function isConstraintValidated($cacheKey, $constraintHash) {
return isset($this->validatedConstraints[$cacheKey . ':' . $constraintHash]);
}