Skip to content

Commit e80d5a8

Browse files
committed
[Bugfix] Fix the where-has and where-doesnt-have filters
Closes #139
1 parent 69724e7 commit e80d5a8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ All notable changes to this project will be documented in this file. This projec
1010
- The maximum PHP version is now 8.0. PHP 8.1 is not supported because it introduces a breaking change. The next major
1111
version of this package will add support for PHP 8.1.
1212

13+
### Fixed
14+
15+
- [#139](https://github.com/laravel-json-api/laravel/issues/139) Fix the `WhereHas` and `WhereDoesntHave` filters.
16+
Previously these were not iterating over the filters from the correct resource schema - they were iterating over
17+
the filters from the schema to which the relationship belonged. They now correctly iterate over the filters from the
18+
schema for the resource that is on the inverse side of the relationship.
19+
1320
## [1.0.0] - 2021-07-31
1421

1522
### Added

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"php": "^7.4|8.0.*",
2727
"ext-json": "*",
2828
"laravel-json-api/core": "^1.0.0",
29-
"laravel-json-api/eloquent": "^1.0.0",
29+
"laravel-json-api/eloquent": "^1.0.1",
3030
"laravel-json-api/encoder-neomerx": "^1.0.0",
3131
"laravel-json-api/exceptions": "^1.0.0",
3232
"laravel-json-api/spec": "^1.0.0",

0 commit comments

Comments
 (0)