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 belongs-to relation model is not serialized in Ember-data v1.13 #3806

Closed
maheshiv opened this issue Sep 30, 2015 · 1 comment · Fixed by #3835
Closed

Polymorphic belongs-to relation model is not serialized in Ember-data v1.13 #3806

maheshiv opened this issue Sep 30, 2015 · 1 comment · Fixed by #3835

Comments

@maheshiv
Copy link

Hi team, we moved our app to ember-data v1.13.8 (We are using rest adapter) everything is working as expected but polymorphic belongs-to relation model is not serialized. I followed this https://github.com/emberjs/data/blob/master/TRANSITION.md#polymorphic-relationships. But when i changed data from
{
"message": 12,
"messageType": "post"
}
to
{
"message": {id: 12, type: 'post'}
}
it will work. This may be an issue or is there any work around for this?

@pangratz
Copy link
Member

pangratz commented Oct 9, 2015

I am not too familiar with the polymorphic stuff, but can you show me your use case? Here is a JSBin for a start: http://emberjs.jsbin.com/xigilu/edit?html,js,output

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

Successfully merging a pull request may close this issue.

2 participants