Skip to content

Commit

Permalink
Fix parsing of TO_MANY relationships from RelationshipResource
Browse files Browse the repository at this point in the history
  • Loading branch information
nohponex committed Jul 29, 2016
1 parent 9b1c547 commit 1fe9b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ public static function parseFromRecord(
}
} elseif (Util::isArrayOf($relationshipEntryResources, RelationshipResource::class)) {
//If returned $relationshipEntryResources are RelationshipResource
$relationshipEntry->data[] = $relationshipEntryResources;
$relationshipEntry->data = $relationshipEntryResources;
} else {
throw new \Exception(sprintf(
'Unexpected relationship entry resources of relationship "%s",'
Expand Down

0 comments on commit 1fe9b83

Please sign in to comment.