You are here

public function ClassMetadata::hasGroupSequence in Plug 7

Returns whether the "Default" group is overridden by a group sequence.

If it is, you can access the group sequence with {@link getGroupSequence()}.

Return value

bool Returns true if the "Default" group is overridden

Overrides ClassMetadataInterface::hasGroupSequence

See also

\Symfony\Component\Validator\Constraints\GroupSequence

2 calls to ClassMetadata::hasGroupSequence()
ClassMetadata::accept in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
ClassMetadata::setGroupSequenceProvider in lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php
Sets whether a group sequence provider should be used.

File

lib/Symfony/validator/Symfony/Component/Validator/Mapping/ClassMetadata.php, line 472

Class

ClassMetadata
Default implementation of {@link ClassMetadataInterface}.

Namespace

Symfony\Component\Validator\Mapping

Code

public function hasGroupSequence() {
  return count($this->groupSequence) > 0;
}