You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, I would like Zoo to have a collection of Primate, Primate being an abstract model of Chimp and Gorilla.
I would like those models to be constructed only when calling fetchRelated on Zoo.
It appears that the models are being initialised when instantiating the Zoo abjet, and therefore only creating Primate objects (because it doesn't have a type field at the moment).
Is there a way to instantiate the models only after the fetchRelated is called ? Is this a use case for createModels ?
Thanks a lot
The text was updated successfully, but these errors were encountered:
Hi,
I would like to know if the use case presented in this jsfiddle is possible with Backbone Relational
http://jsfiddle.net/fe0wkws8/2/
In this example, I would like
Zoo
to have a collection ofPrimate
,Primate
being an abstract model of Chimp and Gorilla.I would like those models to be constructed only when calling
fetchRelated
on Zoo.It appears that the models are being initialised when instantiating the
Zoo
abjet, and therefore only creatingPrimate
objects (because it doesn't have atype
field at the moment).Is there a way to instantiate the models only after the fetchRelated is called ? Is this a use case for
createModels
?Thanks a lot
The text was updated successfully, but these errors were encountered: