Skip to content

Commit

Permalink
Merge pull request #35 from wmde/guid
Browse files Browse the repository at this point in the history
Fix setting of guid in statement deserialization
  • Loading branch information
tobijat committed Sep 11, 2014
2 parents 31fb9ba + 0bc1e4c commit 9bf777a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Deserializers/LegacyStatementDeserializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,14 @@ private function newStatement() {
}

private function newStatementFromClaim( Claim $claim ) {
return new Statement(
$statement = new Statement(
$claim->getMainSnak(),
$claim->getQualifiers()
);

$statement->setGuid( $claim->getGuid() );

return $statement;
}

private function setRank( Statement $statement ) {
Expand Down

0 comments on commit 9bf777a

Please sign in to comment.