[5.8] in/not in operators#28192
[5.8] in/not in operators#28192taylorotwell merged 1 commit intolaravel:5.8from jerguslejko:in-not-in-between
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
inornot instrings 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.