You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validation errors occur (for example during Model.create(...) then afterValidate hook is not called. It would be a good feature to be able to catch validation errors in a hook - is it possible?
If not maybe you could implement this functionality in new version?
For example like this:
This would break BC - Although i'm not sure who uses that hook, but you never know.
The problem is also that the signature for that method is still model.
But yeah we could definitely add a validation failed hook i suppose, that wouldn't interfere with anything.
When validation errors occur (for example during
Model.create(...)
thenafterValidate
hook is not called. It would be a good feature to be able to catch validation errors in a hook - is it possible?If not maybe you could implement this functionality in new version?
For example like this:
or
or something like this.
The text was updated successfully, but these errors were encountered: