-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR when Delete and persist record #1669
Comments
Hi @Lancezh. Records in ember have various states they can be in that correspond to the record's relationship the the external data source. These states contain information about if a record has been created but not saved to the external data source, if it has unsaved changes, if it is up to date ect. Internally Ember Data sends events to the record object to transition between state. The problem here is Ember Data is sending a Ember Data does not implement a handler for the @bradleypriest @igorT @stefanpenner Should ember data implement a noop I suspect the reason why your var _temp_model = this.store.getById('project', '_temp_id');
if(_temp_model){
_temp_model.deleteRecord();
if (_temp_model.get('isDirty')) {
_temp_model.save();
}
} |
Hi, @bmac . Thank you very much for your patience to explain. Where can I find some docs that explain the various states and how they change between state? |
The best docs on this that currently exist would be the api docs for DS.RootState. I've heard some criticism that it isn't in depth enough so let me know if there is something missing that you'd like to see. |
I merged the PR that fixes this, so you shouldn't be having this issue anymore. Thanks for opening it though! |
Hi,
When I tried to delete and persist a record, I got this error
this is my code
I use the lasted canary version
What is the difference with this coding
http://emberjs.com/guides/models/creating-and-deleting-records/#toc_deleting-records
What should I do?
The text was updated successfully, but these errors were encountered: