Ember.js 有许多关联更新

Ember.js 有许多关联更新,ember.js,ember-data,Ember.js,Ember Data,如何更新记录中的多个关联 我尝试过这种方法: record.get('childrenRecords').clear(); newChildrenRecords.forEach(function (child) { record.get('childrenRecords').pushObject(App.ChildModel.find(child.get('id')); }); 但我有一个错误: 未捕获错误:无法响应状态加载中添加的事件记录。 此外,我也找不到正确的解决方案来更新在Embe

如何更新记录中的多个关联

我尝试过这种方法:

record.get('childrenRecords').clear();
newChildrenRecords.forEach(function (child) {
  record.get('childrenRecords').pushObject(App.ChildModel.find(child.get('id'));
});
但我有一个错误:

未捕获错误:无法响应状态加载中添加的事件记录。

此外,我也找不到正确的解决方案来更新
Ember.data
文档中有许多关联