Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polymorphic hasMany requires different key storage format #52

Open
orospakr opened this issue Mar 23, 2014 · 2 comments
Open

Polymorphic hasMany requires different key storage format #52

orospakr opened this issue Mar 23, 2014 · 2 comments

Comments

@orospakr
Copy link

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 orospakr changed the title Polymorphic hasMany requires different key storage Polymorphic hasMany requires different key storage format Mar 23, 2014
@drapergeek
Copy link

I can verify that this is happening.

@mutewinter
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants