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

Array select methods like whereIn and whereNotIn don't seem to work #37

Open
eleven59 opened this issue Aug 5, 2023 · 0 comments
Open

Comments

@eleven59
Copy link

eleven59 commented Aug 5, 2023

If I try to select multiple countries using an array based on the Collection methods whereIn or whereNotIn, I get no results.

I.e., the following return an empty collection:

Countries::whereIn("name.common", ["Netherlands", "Belgium"])->pluck("name.common");
Countries::whereNotIn("name.common", ["Netherlands", "Belgium"])->pluck("name.common");

While in the same context these work fine:

Countries::where("name.common", "Netherlands")->pluck("name.common");
Countries::where("name.common", "Belgium")->pluck("name.common");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant