public function removeVersion($documentVersion)
    {
        $oid = spl_object_hash($documentVersion);
        $history = $this->documentHistory[$oid];
        $version = $this->documentVersion[$oid];

        $history->removeVersion($version->getName());

        unset($this->documentVersion[$oid], $this->documentHistory[$oid]);
    }
public function removeVersion($documentVersion)
    {
        $oid = spl_object_hash($documentVersion);
        $history = $this->documentHistory[$oid];
        $version = $this->documentVersion[$oid];

        $history->removeVersion($version->getName());

        unset($this->documentVersion[$oid], $this->documentHistory[$oid]);
    }
public function removeVersion ( $ documentVersion ) { $ oid = spl_object_hash ( $ documentVersion ) ; $ history = $ this -> documentHistory [ $ oid ] ; $ version = $ this -> documentVersion [ $ oid ] ; $ history -> removeVersion ( $ version -> getName ( ) ) ; unset ( $ this -> documentVersion [ $ oid ] , $ this -> documentHistory [ $ oid ] ) ; }
Delete an old version of a document.

@param string $documentVersion the version name
Delete an old version of a document .