You are here

public function ExecutionContext::isGroupValidated in Plug 7

Returns whether an object was 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

Return value

bool Whether the object was already validated for that group

Overrides ExecutionContextInterface::isGroupValidated

File

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

Class

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

Namespace

Symfony\Component\Validator\Context

Code

public function isGroupValidated($cacheKey, $groupHash) {
  return isset($this->validatedObjects[$cacheKey][$groupHash]);
}