ardent
ardent copied to clipboard
Implement saveOrFail
All methods that issue errors have an orFail alternative. Thus, save() should have as well, throwing an exception with the validation messages.
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.