We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4d0421 + 2cde0f0 commit fc0497aCopy full SHA for fc0497a
2 files changed
VERSION
@@ -1 +1 @@
1
-1.1.0
+1.2.1
src/AbstractResource.php
@@ -526,13 +526,7 @@ public function jsonSerialize($fullResource=true) {
526
if (count($this->relationships) > 0) {
527
$data['relationships'] = [];
528
foreach($this->relationships as $r) {
529
- $data['relationships'][$r->getName()] = [
530
- 'data' => (
531
- $r->getData() ?
532
- $r->getData()->jsonSerialize(false) :
533
- null
534
- )
535
- ];
+ $data['relationships'][$r->getName()] = $r;
536
}
537
538
return $data;
0 commit comments