How can I push data to my store with relation hasMany ? When I load data from ajax request I get reponse json with my data, bu when I try do
store.pushMany('menu',response.menu);
AND in my model I comment line
//containers: DS.hasMany('container', {embedded: 'always'}),
I have only main data , I don’t have menu.containers item. When I uncomment hasMany relations in my model I have error
Assertion Failed: Ember Data expected a number or string to represent the record(s) in the `containers` relationship instead it found an object. If this is a polymorphic relationship please specify a `type` key. If this is an embedded relationship please include the `DS.EmbeddedRecordsMixin` and specify the `containers` property in your serializer's attrs object.
How can I resolve my problem ?