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
This is possibly my mistake, but I'm having a hard time getting the response data processed with materializeData, because data doesn't have a map method. Where is it getting it from? (Btw, I love how I can actually read the source code, as opposed to Ember Data.)
I was running into this as well; turns out I wasn't setting collectionKey for a given model, so ember-model was trying to treat the entire json payload as an array (thus the .map call)
Activity
mikeauclair commentedon Aug 5, 2014
I was running into this as well; turns out I wasn't setting collectionKey for a given model, so ember-model was trying to treat the entire json payload as an array (thus the .map call)
silvenon commentedon Aug 5, 2014
I forgot where I was running into this issue. I'll definitely check if I was doing the same mistake, thanks :)
grapho commentedon Aug 7, 2014
I have this same issue. Pulling a collection from API and
materializeDataseems to fail... even if I set the collectionKey.silvenon commentedon Sep 12, 2014
Ok, back on track.
This happens to me on
#fetch, which should return a single model, not a collection, so it shouldn't be treating it as an array.silvenon commentedon Sep 13, 2014
Possibly related to #408.
silvenon commentedon Sep 15, 2014
Nope 😢
silvenon commentedon Sep 15, 2014
This StackOverflow question describes my issue.