Ember.js commiting parent model with already existing child models
问题 Cheers! For example I have three models: App.Foo = DS.Model.extend({ bars: DS.hasMany('App.Bar', {embedded:'always'}), bazes: DS.hasMany('App.Baz', {embedded:'always'}) }); App.Bar = DS.Model.extend({ foo: DS.belongsTo('App.Foo') }); App.Baz = DS.Model.extend({ foo: DS.belongsTo('App.Foo) }); And adapter mappings like these: App.RESTSerializer = DS.RESTSerializer.extend({ init: function() { this._super(); this.map('App.Foo', { bars:{embedded: 'always'}, bazes:{embedded: 'always'} }) } }); I'm