-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.8] in/not in operators #28192
[5.8] in/not in operators #28192
Conversation
What will happen if you do |
@donnysim if the Therefore, |
Is there a test for such case? It would feel safer if there is one in case someone tampers further with it in the future, but I do like this change 👍 |
@donnysim this is the same issue as doing |
I don't think we should over complicate the query builder with multiple different types of syntax operations. The merging of this opens the door for many more PRs with alternative constructors. |
@ahinkle the query builder already supports this type of querying. |
Yes, we don't have a |
@ahinkle let's wait and see what @taylorotwell thinks |
thanks taylor |
Please see referenced issue and PR, this PR is completely breaking |
it also uses weak
|
Reverted here: 04a547e |
This PR introduces the ability to pass
in
ornot in
strings as an operator to the query builder.The reasons behind this PR:
being able to pass-in these strings as operators allows for nicer query generation:
in the current implementation, it is kind of unintuitive that
$query->where('foo', 'in', [1, 2])
produceswhere foo = "in"
Thanks for reviewing this.