component / model

Minimalistic extensible data models
122 stars 40 forks source link

use id or _id as primary key in save callback #45

Closed luka5 closed 11 years ago

luka5 commented 11 years ago

If your using model and _id as primary key, a new model will be new even after calling save.

domachine commented 11 years ago

yeah i really think this should be considered as a bug. if there's the possibility to customize the key of the primary-key it should be consequently used to parse the server response.