ember-localstorage-adapter icon indicating copy to clipboard operation
ember-localstorage-adapter copied to clipboard

Polymorphic hasMany requires different key storage format

Open orospakr opened this issue 10 years ago • 2 comments

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).

orospakr avatar Mar 23 '14 19:03 orospakr

I can verify that this is happening.

drapergeek avatar Apr 16 '14 19:04 drapergeek

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.

mutewinter avatar Jun 10 '14 15:06 mutewinter