You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the parameter passed into adapterFor here should be relationship.type rather than typeKey:
relationshipToResourceUri: function (relationship, value){
if (!value)
return value;
var store = relationship.type.store,
typeKey = relationship.type.typeKey;
return store.adapterFor(typeKey).buildURL(typeKey, get(value, 'id'));
},
ember-data looks for type.typeKey in the adapterFor function:
/**
Returns the adapter for a given type.
@method adapterFor
@private
@param {subclass of DS.Model} type
@return DS.Adapter
*/
adapterFor: function(type) {
var container = this.container, adapter;
if (container) {
adapter = container.lookup('adapter:' + type.typeKey) || container.lookup('adapter:application');
}
return adapter || get(this, 'defaultAdapter');
},
The text was updated successfully, but these errors were encountered:
Looks like your latest updates for beta.17 compatibility have taken care of this issue. Everything seems to be working very nicely- nice work on the ember-cli support.
I believe the parameter passed into
adapterFor
here should be relationship.type rather than typeKey:ember-data looks for type.typeKey in the adapterFor function:
The text was updated successfully, but these errors were encountered: