You are here

public function Composite::addImplicitGroupName in Plug 7

Implicit group names are forwarded to nested constraints.

Parameters

string $group:

Overrides Constraint::addImplicitGroupName

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/Composite.php, line 122

Class

Composite
A constraint that is composed of other constraints.

Namespace

Symfony\Component\Validator\Constraints

Code

public function addImplicitGroupName($group) {
  parent::addImplicitGroupName($group);

  /** @var Constraint[] $nestedConstraints */
  $nestedConstraints = $this->{$this
    ->getCompositeOption()};
  foreach ($nestedConstraints as $constraint) {
    $constraint
      ->addImplicitGroupName($group);
  }
}