src/acdhOeaw/fedora/FedoraResource.php
public function setMetadata(Resource $metadata, bool $fixReferences = false) {
        $this->metadata = $metadata;
        $this->updated  = false;

        $this->extractAclFromMetadata();

        $this->fedora->getCache()->reload($this);

        if ($fixReferences) {
            $this->fedora->fixMetadataReferences($this->metadata);
        }
    }
public function setMetadata(Resource $metadata, bool $fixReferences = false) {
        $this->metadata = $metadata;
        $this->updated  = false;

        $this->extractAclFromMetadata();

        $this->fedora->getCache()->reload($this);

        if ($fixReferences) {
            $this->fedora->fixMetadataReferences($this->metadata);
        }
    }
public function setMetadata ( Resource $ metadata , bool $ fixReferences = false ) { $ this -> metadata = $ metadata ; $ this -> updated = false ; $ this -> extractAclFromMetadata ( ) ; $ this -> fedora -> getCache ( ) -> reload ( $ this ) ; if ( $ fixReferences ) { $ this -> fedora -> fixMetadataReferences ( $ this -> metadata ) ; } }
Replaces resource metadata with a given RDF graph.

New metadata are not automatically written back to the Fedora.
Use the updateMetadata() method to write them back.

@param EasyRdf\Resource $metadata
@param bool $fixReferences Should reference to other repository resources
be switched into corresponding UUIDs?
@see updateMetadata()
Replaces resource metadata with a given RDF graph .