Skip to content
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

Automatically change operator to IN for array values #16

Open
amostajo opened this issue Feb 12, 2021 · 1 comment
Open

Automatically change operator to IN for array values #16

amostajo opened this issue Feb 12, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@amostajo
Copy link
Collaborator

Current, in order to use arrays, it has to manually change the operator to:

$builder->where( [
    'ID' => [
        'operator' => 'IN',
        'value' => $array_value,
    ]
] )

Change it so it array is automatically detected, and the operator is set as IN when this happens:

$builder->where( [
    'ID' => $array_value,
] )
@amostajo amostajo added the enhancement New feature or request label Feb 12, 2021
@tisaconundrum2
Copy link

From a, strictly speaking, explicit standpoint, it's made really clear what is happening, but I can see why a fix like this is nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants