locks / ember-localstorage-adapter

Name says it all.
MIT License
466 stars 156 forks source link

Polymorphic hasMany requires different key storage format #52

Open orospakr opened 10 years ago

orospakr commented 10 years ago

The adapter does not appear to be storing the item keys in the list of a polymorphic hasMany association as hashes containing the item type. Apparently this is a requirement for polymorphic associations to work.

It's possible that I've missed something obvious. I am being a bit naughty and using 1.0.0beta7 instead of the stated requirement of beta6 of ED.

Currently, it fails like Ember Data bug #1622 (in which someone needed to ensure that their REST adapter was returning the correct ID list format).

drapergeek commented 10 years ago

I can verify that this is happening.

mutewinter commented 10 years ago

Experiencing this issue also. Keeping me from using ember-localstorage-adapter. Instead, I'm rolling my own Array using https://gist.github.com/tomdale/11360257 and handling the serialization / deserialization myself.