-
Notifications
You must be signed in to change notification settings - Fork 77
Multiple relationships to the same model #118
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
Comments
Yes, for some reason it never occurred to me that one might have multiple relationships of the same type to the same resource. Obviously, it won't work with the current implementation. Your suggested fix is exactly what would need to be done. Would you care to take a crack at it? Hacking on angular-data is easy: clone it, I would maybe be able to get to this in 2 days. |
Sure, I'll take a quick looksee |
issue #118: Allow multiple relationships to same model
Fixed by #122 |
Have you given much thought as to how to define multiple relationships to the same model? For example:
Both
created_by
andmodified_by
may relate to theusers
model, but as far as I can tell, there's no way to do this with the current way of defining relationships.A backward-compatible way might be to allow an array:
Thoughts?
The text was updated successfully, but these errors were encountered: