Say I have a Person who has many Dogs:
App.Person = DS.Model.extend name: DS.attr 'string' dogs: DS.hasMany 'elements', embedded: 'always' App.Dog = DS.Model.extend owner: DS.belongsTo 'person'
Is it possible to do something like that:
person = store.createRecord 'person', hash person.get('dogs').set objectAt(N), someDog
I’d like to replace the dog in person at index N with some other dog.