dresende/node-orm — Issue #42: Odd ordering of beforeSave Hook
Author: tanema
Created: 2012-02-28 00:58:08+00:00
State: open

It seems odd to me that you would run your beforeSave hook before the validations, for instance I was working on a User model where I encrypted the password so I wanted to validate the plain text password before I did the encryption in the before save hook.

This is my only example really, and I am willing to accept an argument for it, but it is my opinion that the beforeSave hook should be done after the validations.