Skip to content

Commit fc0497a

Browse files
authored
Merge pull request #5 from cfxmarkets/v1.2.x
Request to release v1.2.1
2 parents a4d0421 + 2cde0f0 commit fc0497a

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.0
1+
1.2.1

src/AbstractResource.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -526,13 +526,7 @@ public function jsonSerialize($fullResource=true) {
526526
if (count($this->relationships) > 0) {
527527
$data['relationships'] = [];
528528
foreach($this->relationships as $r) {
529-
$data['relationships'][$r->getName()] = [
530-
'data' => (
531-
$r->getData() ?
532-
$r->getData()->jsonSerialize(false) :
533-
null
534-
)
535-
];
529+
$data['relationships'][$r->getName()] = $r;
536530
}
537531
}
538532
return $data;

0 commit comments

Comments
 (0)