We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b88daf commit 4ac8142Copy full SHA for 4ac8142
src/Utils/Model.php
@@ -88,7 +88,7 @@ public function update( $data = [] )
88
89
$responseData = json_decode( (string) $response->getBody() );
90
91
- return new $this->modelClass( $this->request, $responseData->{$this->entity}[ 0 ] );
+ return new $this->modelClass( $this->request, $responseData->{str_singular( $this->entity )} );
92
} );
93
}
94
0 commit comments