Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Validation after onBeforeUpdate() #140

Open
GerhardLiebenberg opened this issue Sep 7, 2015 · 0 comments
Open

Validation after onBeforeUpdate() #140

GerhardLiebenberg opened this issue Sep 7, 2015 · 0 comments

Comments

@GerhardLiebenberg
Copy link

EditableSaver validates the attribute before beforeUpdate() is performed.

After beforeUpdate() was performed, EditableSaver only checks for new errors, without first performing any validation again.

This means that new errors introduced via code in beforeUpdate() are not discovered, unless the beforeUpdate() function explicitly performs $editSaver->model->validate() at the end.

If this is the desired functionality, then maybe this point should just be stressed in the documentation.

@GerhardLiebenberg GerhardLiebenberg changed the title Validation Validation after onBeforeUpdate() Sep 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant