Builder does not support all postgres operators #42120
Unanswered
markuskooche
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It is not possible to use the
IS
orIS NOT
operators for example in the whereRelation() function.The problem is that the
Illuminate\Database\Query\Builder
does not support these operators.It would work if these operators were included in this array.
https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Query/Builder.php#L199-L206
And the whereRelation() calls the where() function inside the builder, which changes unsupported operators to
=
.https://github.com/laravel/framework/blob/9.x/src/Illuminate/Database/Query/Builder.php#L739-L741
Beta Was this translation helpful? Give feedback.
All reactions