How to make embedded hasMany relationships work with ember data

前端 未结 4 1626
既然无缘
既然无缘 2020-11-27 13:51

I can\'t get embedded hasMany to work correctly with ember data.

I have something like this

App.Post = DS.Model.extend({
          


        
4条回答
  •  借酒劲吻你
    2020-11-27 14:44

    I have the exact same problem.

    This bug has been reported on the ember data issue tracker. The following PR adds 2 failing tests showing the problem: https://github.com/emberjs/data/pull/578

    It seems that there is no workaround right now.

    EDIT:

    sebastianseilund opened a PR 2 days ago which fixes your problem. Have a look at: https://github.com/emberjs/data/pull/629/files

提交回复
热议问题