Open steelsojka opened 10 years ago
After digging through the source code, I realized I can add options onto the relation. I'll try this and see if it works.
My above comment did not work since the options passed in override relation options :(
The problem is that passed in options still override relation options. https://github.com/dhruvaray/backbone-associations/blob/master/backbone-associations.js#L271
Should this be the other way around?
When backbone-associations calls
set
when creating the EntityCollection with the key ofentities
it passes the options from thefetch
which Backbone automatically sets theparse
option to true which calls the parse function when setting the collection. In this case this would throw anundefined
error since parse is getting called with just the array.I'm not sure if this is a Backbone specific issue or not. Has anybody else ran into this issue?