Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Implement saveOrFail #279

Open
igorsantos07 opened this issue Nov 10, 2015 · 1 comment
Open

Implement saveOrFail #279

igorsantos07 opened this issue Nov 10, 2015 · 1 comment

Comments

@igorsantos07
Copy link
Member

All methods that issue errors have an orFail alternative. Thus, save() should have as well, throwing an exception with the validation messages.

@igorsantos07
Copy link
Member Author

This behaviour is possible currently by using throwOnValidation. However, it seems that setting this property in the class itself has no effect - maybe it's being overridden elsewhere.

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

No branches or pull requests

1 participant