1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.04k stars 241 forks source link

setting attributes and calling save the same as setting through updateAttributes? #357

Closed 0xgeert closed 10 years ago

0xgeert commented 10 years ago

Just for my understanding is the following functionally the same, with respect to called triggers, validation, etc.?

  1. set properties manually and calling save
    • user.email = "test@example.com"
    • user.save()
  2. calling updateAttributes
    • user.updateAttributes({email: "test@example.com"});
1602 commented 10 years ago

Yes.