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

[WIP] Very rudimentary starting point for Model::where*() methods #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

3onyc
Copy link
Contributor

@3onyc 3onyc commented May 10, 2018

So far this code fixes any errors with where*() methods, except for more complicated cases.

For reference

You seem to be able to call methods such as Model::whereEmailAndName($email, $name) and Model::whereEmailOrEmail($email, $otherEmail) but I haven't ever used these and would have to do more research.

I also think writing a library to easily create "fake" classes/methods/variables and easily construct types could be beneficial for the more magic methods such as this one, assuming such a library doesn't already exist.

Feel free to comment and contribute, as this is far from ready to be merged.

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

Successfully merging this pull request may close these issues.

1 participant