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

saveOrReturn() raises an exception! #181

Open
cartbeforehorse opened this issue Sep 17, 2017 · 0 comments
Open

saveOrReturn() raises an exception! #181

cartbeforehorse opened this issue Sep 17, 2017 · 0 comments

Comments

@cartbeforehorse
Copy link

I've just noticed that saveOrReturn() raises an exception if $throwValidationExceptions is set true. The documentation suggests that the whole purpose of this function is to avoid throwing an exception, even if the afore-mentioned variable is set. Also I extracted this comment from the code:

/** saveOrReturn()
 * Perform a one-off save that will return a boolean on
 * validation error instead of raising an exception.
 */
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