You are here

public function ExecutionContext::markGroupAsValidated in Plug 7

Marks an object as validated in a specific validation group.

@internal Used by the validator engine. Should not be called by user code.

Parameters

string $cacheKey The hash of the object:

string $groupHash The group's name or hash, if it is group: sequence

Overrides ExecutionContextInterface::markGroupAsValidated

File

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

Class

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

Namespace

Symfony\Component\Validator\Context

Code

public function markGroupAsValidated($cacheKey, $groupHash) {
  if (!isset($this->validatedObjects[$cacheKey])) {
    $this->validatedObjects[$cacheKey] = array();
  }
  $this->validatedObjects[$cacheKey][$groupHash] = true;
}