8000 Merge branch 'hotfix/0.4.6' · Neuromobile/laravel-json-api@7fc4416 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fc4416

Browse files
committed
Merge branch 'hotfix/0.4.6'
2 parents 1f8f48d + 34469b4 commit 7fc4416

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
All notable changes to this project will be documented in this file. This project adheres to
33
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
44

5+
## [0.4.6] - 2016-09-01
6+
7+
### Fixed
8+
- Return value from hydrator was not being used in the Eloquent controller. The hydrator interface defines that the
9+
hydrated object should be returned, so the controller has been amended to respect this return value.
10+
511
## [0.4.5] - 2016-08-26
612

713
### Change

src/Http/Controllers/EloquentController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ protected function hydrate(ResourceInterface $resource, Model $model)
228228
return $this->methodNotAllowed();
229229
}
230230

231-
$this->hydrator->hydrate($resource, $model);
232-
233-
return $model;
231+
return $this->hydrator->hydrate($resource, $model);
234232
}
235233

236234
/**

0 commit comments

Comments
 (0)
0