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

Soft Model Retrieval Methods #25

Closed
aaemnnosttv opened this issue Feb 24, 2018 · 0 comments
Closed

Soft Model Retrieval Methods #25

aaemnnosttv opened this issue Feb 24, 2018 · 0 comments

Comments

@aaemnnosttv
Copy link
Owner

aaemnnosttv commented Feb 24, 2018

As it is, the current methods for retrieving a model instance are all "hard" methods, in that they all throw a not found exception in the event that there is no record found for the given ID, slug, etc.

There are times however when an exception is not necessary and a simple falsy value would be more efficient. This would allow for more flexibility by not forcing the user to handle exceptions in all cases.

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