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

Throw exception when no arguments are passed to the single entity query #44

Open
robertvansteen opened this issue Jul 5, 2018 · 0 comments

Comments

@robertvansteen
Copy link
Contributor

Right now we just loop through the arguments, filtering the query. But if you don't supply any arguments and the query returns only model (because there is only one in the database for example) it does not throw any error and return that model. We should check for the amount of argument supplied and throw an exception if that amount is zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant