Sorry, I goofed the order of the save calls- I edited the example.
Are you saying that you don’t store the tags independently of the products on the server? If that’s the case, I don’t know that modeling it that way in ember data is the right approach. You may be able to do it if you customize the adapter to not send tags out to the server on tag.save(), but include the full tag objects in the request for product.save(). Anyone else have any insight into this?
How did you solve this problem? (I currently have the same one…)
Do you have to first create the parent and then edit it to be able to add child relationship model?
Or did you find a way to add your child relationship to the being created parent?