Does store.flush update the local created entity
Can store.flush updates the local created entity with the key? I don't see that store.refresh refreshes the with new entries (if exists) in the backend, but I want my locally created entry need to be updated as my the local record will have temporary key assigned(within the program) where as when it sent to backend new number(key) will be generated.
Is there a way to update the local created record? or delete from the local record if flush was successful.
I found the solution.. in my case, backend´s guys had not implemented "DELETE" http method and the plugin tries to look (unsuccessfully) to get this method (as a standard way in REST apps) and it did not find it.. From backend implemented a empty method and it was enough.
Of course, it is necessary to follow oData protocol line by line and it will works...
Here you can see another example of this problem, more or less similar...
In this post I had written comments with the user Dan Antonio.
I expect you find the solution..