public $defaultGroup;
/**
- * @var MemberMetadata[]
+ * @var MemberMetadata[][]
*
* @internal This property is public in order to reduce the size of the
* class' serialized representation. Do not access it. Use
/**
* Merges the constraints of the given metadata into this object.
- *
- * @param ClassMetadata $source The source metadata
*/
public function mergeConstraints(ClassMetadata $source)
{
+ if ($source->isGroupSequenceProvider()) {
+ $this->setGroupSequenceProvider(true);
+ }
+
foreach ($source->getConstraints() as $constraint) {
$this->addConstraint(clone $constraint);
}
return CascadingStrategy::NONE;
}
- /**
- * Adds a property metadata.
- *
- * @param PropertyMetadataInterface $metadata
- */
private function addPropertyMetadata(PropertyMetadataInterface $metadata)
{
$property = $metadata->getPropertyName();