-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Serializer issue with embedded relationships. #3424
Comments
Thanks for reporting! Would you be able to reproduce the error in a JSBin? |
Will try to later this afternoon. |
Here's a pre-configured JSBin using Ember 1.13.2 and Ember Data 1.13.4 without any deprecation warnings you can use: http://emberjs.jsbin.com/zotuta/edit?html,js,output |
Here's a JSBin reproducing the error http://emberjs.jsbin.com/kubupaluma/edit?html,js,output |
Thanks @jcbvm! This seem to be a bug where your I'm not sure how to solve this but it should be fixed. Until then you can either have your |
Thanks for looking into, makes some sense now. Currently I'm working around this by defining an empty serializer, so using the old API. |
@wecc this is actually tricky, we should think if there is a way to make sure you always use new or old serializer throughout the request |
@igorT there's an assert in RESTSerializer that doesn't solve this particular problem, but might at least give some information about what's happening, see https://github.com/emberjs/data/blob/release/packages/ember-data/lib/serializers/rest-serializer.js#L218 We could implement this assert in multiple places (where we do |
I think this sounds like a great idea. |
Closing since #3511 has been merged. |
Got a lot of
you must include an 'id' for some-model in an object passed to 'push'
errors since I upgraded to 1.13.4. Tracked it down and it seems to come from my embedded relationships. When I do not define a custom serializer for the embedded relationship, above error is thrown. When I do create a custom serializer (just an empty RESTSerializer), above error disappears.The text was updated successfully, but these errors were encountered: