You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the belongsTo property (author) should set the book's isDirty to true, but it doesn't. This also means that DS.Model.rollback() doesn't work. Here's a jsbin:
I'm not too familiar with the topic, but I've seen it discussed in other issues here. I believe the newest one is #2122 .
And some going further back with more information: #1367 (with some discussion) #1514 (with some possible solutions)
Thanks for your comments. Basically, tracking dirtiness across relationships is a non-trivial problem with often application-specific semantics.
That said we would love insights on suggestions to help pave the cowpaths.
Please feel free to add your thoughts on the other open issues or create a new discussion at https://discuss.emberjs.com
Here's an example model:
Changing the belongsTo property (author) should set the book's isDirty to true, but it doesn't. This also means that DS.Model.rollback() doesn't work. Here's a jsbin:
http://emberjs.jsbin.com/zifaqa/2/edit?html,js,output
The text was updated successfully, but these errors were encountered: