ember.js - Uncommitted record still present after rollback() -
i have following in objectcontroller , have verified both actions called correctly:
setup: -> transaction = @get('store').transaction() post = transaction.createrecord(app.post, {postedat: new date()}) @set('content', post) cancel: -> @get('content.transaction').rollback()
however, despite transaction being rolled uncommitted record still present in data store.
should handling created records differently in transactions?
edit: i'm seeing errors such after rolling transaction:
error: attempted handle event `didsetproperty` on <app.post:ember926:null> while in state rootstate.deleted.saved. called {name: title}
Comments
Post a Comment