0

I'm asking this question because I found this question but I'm wondering if it's still relevant.

Many to Many Relationships with Ember, ember-data and Rails

Does ember data natively support saving of many-to-many relationships?

Community
  • 1
  • 1

1 Answers1

0

Yes, it Does. You can see in that part of the docs.

// app/models/post.js
  export default DS.Model.extend({
      tags: DS.hasMany('tag')
  });

// app/models/tag.js
  export default DS.Model.extend({
      posts: DS.hasMany('post')
  });

You have to see what your Adapter is doing when serializing the data. If you need, you can create a custom serializer.

Bruno Paulino
  • 5,611
  • 1
  • 41
  • 40