I can\'t get embedded hasMany to work correctly with ember data.
I have something like this
App.Post = DS.Model.extend({
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