9 Nov 2012 6:55 AM #11
i'll have to correct myself.
i really believe there is a bug when you post a request with
this.add(entry) ; this.sync() ;
because the save() on a record doesn't add this record to the store, only to SAP.
so manually adding the record to the store and then deleting it wont work
16 Nov 2012 3:19 AM #12
I tried adding a new record to a store and then sync(). I check the phantom property before and after the sync, and it was (as expected), before: true, after: false.
Perhaps you can post a basic test example, where deleting from the store fails. If I can reproduce, I might be able to help you to nail this issue.
16 Nov 2012 7:56 AM #13
after every create, i'm just going to reload the store.
this way, all the data is correct and delete works.
it's not the most optimal solution, but it works =)