ardent icon indicating copy to clipboard operation
ardent copied to clipboard

Implement saveOrFail

Open igorsantos07 opened this issue 10 years ago • 1 comments

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

igorsantos07 avatar Nov 10 '15 00:11 igorsantos07

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.

igorsantos07 avatar Nov 10 '15 00:11 igorsantos07