Skip to content

Commit

Permalink
[BUGFIX] Remove uid from serialization (#1224)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored May 29, 2024
1 parent 53c5873 commit 2f7b171
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Common/IiifManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,6 @@ public function __sleep(): array
// TODO implement serialization in IIIF library
$jsonArray = $this->iiif->getOriginalJsonArray();
$this->asJson = json_encode($jsonArray);
return ['uid', 'pid', 'recordId', 'parentId', 'asJson'];
return ['pid', 'recordId', 'parentId', 'asJson'];
}
}
2 changes: 1 addition & 1 deletion Classes/Common/MetsDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,7 @@ public function __sleep(): array
{
// \SimpleXMLElement objects can't be serialized, thus save the XML as string for serialization
$this->asXML = $this->xml->asXML();
return ['uid', 'pid', 'recordId', 'parentId', 'asXML'];
return ['pid', 'recordId', 'parentId', 'asXML'];
}

/**
Expand Down

0 comments on commit 2f7b171

Please sign in to comment.