Cannot read property 'determineRelationshipType' when trying to save() Model with hasMany Relationship
问题 I'm running into a tough bug when trying to save a record with the LocalStorage Adapter that has a hasMany relationship (Using Ember CLI). What I'm trying to do is save a product to a bag when a user clicks on a "Add to Bag" button. I'm getting this error in my console: Uncaught TypeError: Cannot read property 'determineRelationshipType' of undefined Product Model: import DS from 'ember-data'; export default DS.Model.extend({ ... bag: DS.belongsTo('bag') }); Bag Model: import DS from 'ember