You are here

public function ExecutionContext::markConstraintAsValidated in Plug 7

Marks a constraint as 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:

Overrides ExecutionContextInterface::markConstraintAsValidated

File

lib/Symfony/validator/Symfony/Component/Validator/Context/ExecutionContext.php, line 376

Class

ExecutionContext
The context used and created by {@link ExecutionContextFactory}.

Namespace

Symfony\Component\Validator\Context

Code

public function markConstraintAsValidated($cacheKey, $constraintHash) {
  $this->validatedConstraints[$cacheKey . ':' . $constraintHash] = true;
}