top | item 9073832

(no title)

whatthemick | 11 years ago

I would expect those events to be triggered by action though, then it wouldn't be persistence ignorance.

discuss

order

k__|11 years ago

Sequelize has the build method, which persists automatically.

Couldn't the rest be achieved by simply adding a few (update, delete) methods to the model classes?

bulkan|11 years ago

The create method on model's persist automatically. Build just creates an instance without saving it to the database.