public function merge(EntityMetadata $metadata)
    {
        $this->setType($metadata->type);
        $this->setAbstract($metadata->isAbstract());
        $this->setPolymorphic($metadata->isPolymorphic());
        $this->extends = $metadata->extends;
        $this->mergeAttributes($metadata->getAttributes());
        $this->mergeRelationships($metadata->getRelationships());
        return $this;
    }
public function merge(EntityMetadata $metadata)
    {
        $this->setType($metadata->type);
        $this->setAbstract($metadata->isAbstract());
        $this->setPolymorphic($metadata->isPolymorphic());
        $this->extends = $metadata->extends;
        $this->mergeAttributes($metadata->getAttributes());
        $this->mergeRelationships($metadata->getRelationships());
        return $this;
    }
public function merge ( EntityMetadata $ metadata ) { $ this -> setType ( $ metadata -> type ) ; $ this -> setAbstract ( $ metadata -> isAbstract ( ) ) ; $ this -> setPolymorphic ( $ metadata -> isPolymorphic ( ) ) ; $ this -> extends = $ metadata -> extends ; $ this -> mergeAttributes ( $ metadata -> getAttributes ( ) ) ; $ this -> mergeRelationships ( $ metadata -> getRelationships ( ) ) ; return $ this ; }
Merges an EntityMetadata instance with this instance.
For use with entity class extension.

@param   EntityMetadata  $metadata
@return  self
Merges an EntityMetadata instance with this instance . For use with entity class extension .