Saving multiple related new records in one transaction #844

valentin-nemcev opened this Issue Mar 28, 2013 · 2 comments

3 participants


For example, I have a Post model that has many PostTags.
When I create a new post with a new postTag and try to save them...

post = Post.createRecord();
postTag = post.get('postTags').createRecord({tag: someExistingTag})

Store adapter tries to save the postTag without a post id, because it doesn't wait for the response from server after saving post. Because of this relationship between new models doesn't persist on the server.

This problem described in the documentation here, but I can't find any traces of actual implementation in the DS.Transaction source.
Is this simply not implemented or I'm missing something?

Ember.js member

@wycats, @tomdale, should this be considered a bug?

Ember.js member

This is essentially a dup of #1095 unless I'm missing something.

@wycats wycats closed this Aug 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment