【发布时间】:2013-08-12 18:21:01
【问题描述】:
我正在尝试使用内置的 ember 选择视图更改 belongsTo。 However, when the select box changes only the belongs to attribute is updated, not the hasMany relationship.以下 jsbin 显示了这种行为 http://jsbin.com/ewosiy/3/edit。
在这个例子中,一个人有很多事件,一个事件属于一个人。如果我更改了该事件的所属人,则该事件将从原来的人中删除,但不会添加到新的人中。
我可以滚动我自己的选择框组件,但只是想知道 ember 选择是否真的没有更新关系的两端。
谢谢。
【问题讨论】:
-
您的 jsbin,已更新以使用最新的 Ember:jsbin.com/axOhIBih/1
标签: ember.js ember-data