重新加载async hasMany,其中包含来自服务器和Ember Data的链接

时间:2014-07-29 07:16:14

标签: ember.js ember-data

基本上这个问题是:

How to reload an async with links hasMany relationship?

使用Ember 1.6.1和Ember Data 1.0.0-beta.8,所提供的解决方案对我来说不再适用。

我得到的是:

Error: Assertion Failed: The response from a findHasMany must be an Array, not undefined
    at new Error (native)
    at Error.EmberError (http://localhost:3000/assets/ember.js?body=1:2966:23)
    at Object.Ember.assert (http://localhost:3000/assets/ember.js?body=1:119:15)
    at http://localhost:3000/assets/ember-data.js?body=1:11290:15
    at invokeCallback (http://localhost:3000/assets/ember.js?body=1:10559:19)
    at publish (http://localhost:3000/assets/ember.js?body=1:10229:9)
    at publishFulfillment (http://localhost:3000/assets/ember.js?body=1:10649:7)
    at http://localhost:3000/assets/ember.js?body=1:16067:9
    at DeferredActionQueues.invoke (http://localhost:3000/assets/ember.js?body=1:8597:18)
    at Object.DeferredActionQueues.flush (http://localhost:3000/assets/ember.js?body=1:8647:15)

0 个答案:

没有答案