Skip to content

Commit

Permalink
Merge pull request #38 from thanh-taro/add_relationships_data
Browse files Browse the repository at this point in the history
Update code
  • Loading branch information
thanh-taro committed Jun 21, 2016
2 parents 5895e79 + f3c52d2 commit e937133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JsonObjects/V1_0/TopLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function setModel($model, $getRelationships = true)
$this->set('data', null);
if (is_array($model)) {
foreach ($model as $m) {
$this->addModel($m);
$this->addModel($m, $getRelationships);
}
} else {
list($resource, $includes) = $this->parseModel($model, $getRelationships);
Expand Down

0 comments on commit e937133

Please sign in to comment.