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

Reload linked belongsTo relationship #3426

Closed
jcbvm opened this issue Jun 23, 2015 · 5 comments
Closed

Reload linked belongsTo relationship #3426

jcbvm opened this issue Jun 23, 2015 · 5 comments

Comments

@jcbvm
Copy link

jcbvm commented Jun 23, 2015

This is more a (feature) question than an issue. With all the new changes in 1.13, is there currently a proper way to reload a belongsTo relationship which is defined as link in the parent model? If not, is there any workaround for this?

@miguelcobain
Copy link

I'm also looking for this.
Previously I could reload() a record and its relationships would be updated with what the server returns. Now relationships seem to be ignored.

Any workarounds?

@wecc
Copy link
Contributor

wecc commented Jul 29, 2015

I think this should be resolved when #3380 is fixed.

@pangratz
Copy link
Member

pangratz commented Jan 2, 2016

I think this issue can be closed since #3380 has been merged. Also an initial implementation of references has been merged into master. Having the ds-references feature enabled, a belongsTo relationship can be reloaded via model.belongsTo('family').reload().

@jcbvm can you confirm that your use case is handled now?

@fivetanley
Copy link
Member

I think references is the way to go here.

@jcbvm
Copy link
Author

jcbvm commented Feb 7, 2016

Sorry for my late response, this looks really good yes. Will try it soon using the flag to see how it works out in my app. Thanks a lot!

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

5 participants