public function fork() { $r = new DokumentRevision($this->getStorage()); $r->setDokumentID($this->getDokumentID()); $r->setGliederungID($this->getGliederungID()); $r->setKategorieID($this->getKategorieID()); $r->setStatusID($this->getStatusID()); $r->setIdentifier($this->getIdentifier()); $r->setLabel($this->getLabel()); $r->setContent($this->getContent()); $r->setData($this->getData()); $r->setFileID($this->getFileID()); foreach ($this->getFlags() as $flag) { $r->setFlag($flag); } return $r; }