I have been using backbone relational (https://github.com/PaulUithol/Backbone-relational) to build my application because I have a model (Room) with lots of other models attached:
- Room has many Comment
- Room belongs to Location
As you can see in this issue I keep getting the error
Error: Cannot instantiate more than one Backbone.RelationalModel with the same id per type
Whenever I change View or reload a Collection.
Now I know there is a thread here where they suggest using findOrCreate
but I am not accessing models individually, but am instead using Collection.fetch
. Is there a way around this problem?