-
See example below. Am I crafting the filters in the correct format here? $filters = [
'name' => [
'$in' => [
'Name'
],
],
'books' => [
'name' => [
'$in' => [
'Game'
],
],
'description' => [
'$in' => [
'Thrones',
],
],
],
],
$results = Author::filter($filters)->get();
Abbasudo\Purity\Exceptions\FieldNotSupported: The field 'books' is not supported for model App\Models\Book. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 22 replies
-
@abbasudo - Would be great for your input here. There is no example in the documentation on filtering by multiple relationship properties. When I try the above, it fails when trying to apply the second filter inside the books array.
Am I using this package wrong or is this a limitation? |
Beta Was this translation helpful? Give feedback.
-
You've got "select * from `authors` where `name` in (?) and exists (select * from `books` where `authors`.`id` = `books`.`author_id` and `description` in (?))" array:2 [
0 => "Name"
1 => "Thrones"
] |
Beta Was this translation helpful? Give feedback.
-
Okay, had a screenshare with @num8er We found that the bug does not exist in dev-master when i composer require in my application. v3.2.0 is broken. v3.2.0 was released containing bug. PR #49 fixed issue. no release done since. Can a release be done from current master please. |
Beta Was this translation helpful? Give feedback.
-
@num8er Good idea. thanks for your help. |
Beta Was this translation helpful? Give feedback.
@abbasudo
Okay, had a screenshare with @num8er
We found that the bug does not exist in dev-master when i composer require in my application.
v3.2.0 is broken.
v3.2.0 was released containing bug. PR #49 fixed issue. no release done since.
Can a release be done from current master please.