I was wondering if it would be possible to define a model stored into another one.
I have this kind of structure:
Model Address (hasMany)
Model Phone (hasMany)
On my backend, addresses and phones are MongoDB's embedded documents contained in a "Contact" document.
And, as long as they are embedded documents, they do not have an id.
And when I am on the Emberjs/data layer, they are -well- loaded with the embedded option (cf. the end of the https://github.com/emberjs/data#one-to-one section) but stored as separate objects and this cause trouble when updating or saving...
See Question&Answers more detail:os