【发布时间】:2015-07-04 11:14:41
【问题描述】:
这是一个惯用的 hasMany/belongsTo 多态示例,其中电子邮件可以属于多种类型的 Contactable('profile' 是其中之一)http://emberjs.jsbin.com/sibecasiga/1/edit?js,output,这在http://www.toptal.com/emberjs/a-thorough-guide-to-ember-data中有完美的描述
问题是profile.get('emails').pushObject(email); 之后电子邮件的'contactable' 和'contactableType' 为空。这不是它应该的样子,对吧?
【问题讨论】:
标签: ember.js ember-data