setMixins() public method

Set the JCR mixins
public setMixins ( array $mixins )
$mixins array
Ejemplo n.º 1
0
 /**
  * Set the document level options of the parent class to the subclass.
  *
  * @param ClassMetadata $subClass
  * @param ClassMetadata $parentClass
  */
 private function addInheritedDocumentOptions(ClassMetadata $subClass, ClassMetadata $parentClass)
 {
     $subClass->setCustomRepositoryClassName($parentClass->customRepositoryClassName);
     $subClass->setTranslator($parentClass->translator);
     $subClass->setVersioned($parentClass->versionable);
     $subClass->setReferenceable($parentClass->referenceable);
     $subClass->setNodeType($parentClass->getNodeType());
     $subClass->setMixins($parentClass->getMixins());
 }