db
db copied to clipboard
Collection.Insert() does not Use Validation Hooks
I just learned that Session.Save() can do nearly all the same things as Collection.Insert(), but this did help me learn that Collection.Insert() does not use the following validation hooks:
BeforeCreate(db.Session) error AfterCreate(db.Session) error BeforeUpdate(db.Session) error AfterUpdate(db.Session) error BeforeDelete(db.Session) error AfterDelete(db.Session) error Validate() error
Uncertain if this were intentional, but I wanted to point it out nonetheless!
Thanks in advance for reading my issue.