CakePHP-Proffer
CakePHP-Proffer copied to clipboard
Make Exception when field is not set optional
I've made the Exception that is thrown when a field is empty in beforeSave optional. You can set the skipEmpty option to enable this.
The problem is that when I update anonther field (like name for example) in my entity the Proffer behavior is called and an exception is thrown.
Any chance you could add a unit test for this?
@davidyell I've created a unit test for this. I hope I did it correctly because I don't write very much unit tests. If I did something wrong. Please tell me and I'll try to fix it.
Thanks