My main problem with Ember Data, right now, is that when I change a relationship (hasMany or belongsTo), the parent doesn't get dirty.
I need this because:
- I'm depending on the
isDirty
property to show a save/cancel button - hasMany and belongsTo ids are sent with the parent, so the parent in fact IS dirty.
Also, when I rollback the parent, only the belongsTo relationships are reverted. The hasMany models stay the same.
I've found this issue that talks about a dirtyRecordsForHasManyChange
hook, but that doesn't seem to exist in Ember Data v1 (v1.0.0-beta.3, which is what I'm using).
How can I accomplish this?
Thanks.