-
Notifications
You must be signed in to change notification settings - Fork 330
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
Model in multiple collections #517
Comments
I don't think there should be any problem with this. Want to post your relations code from both models? You may also want to fiddle with the reverseRelations settings http://backbonerelational.org/#relations-reverseRelation |
@jmcgdz I am actually facing the same problem with nested collections that contain the same model id. Models with same ids aren't duplicated into nested collections. |
@jmcgdz I made it working using a many-to-many relationship. So in your example you can finally have same "dashboard ids" into different "dashboard_container_uuid". Take a look at this fiddle many-to-many relations example that helped me a lot since BB relational doesn't have a proper documentation for it: http://jsfiddle.net/mmacaula/XaESG/2/ |
I've got a similar problem, in my case the models are going into the different collections but they are being overridden by the first model to be created. Maybe I'm oversimplifying things here but why can't we just have a flag against a
This would help me a lot as for the most part I am only using BBR for the sub-model type binding. |
I know there has been a lot of talk around this, but I cannot find a solution for my situation.
I'm not sure if I'm using bb relational as it was intended.
My use case is:
And my issue is that the 'dashboard_container_uuid_3' instance has an empty dashboards collection.
I'm assuming this is because it is trying to create duplicate 'dashboard' models since '2' and '4' are already in previous 'dashboard_container', but I can't find a clean solution to make this work.
The text was updated successfully, but these errors were encountered: