Backbone isn't really made to work with nested models (Backbone-Relational may be interesting). But if you have access to the entry point of your tree (in your example, to the instance of PageGroupCollection
), you can do that:
var parent = myPageGroupCollection.findWhere({pageCollection: myPageModel.collection});
With myPageModel
being your child model and pageCollection
the collection attribute of the PageGroupModel
.
Supposing you also don't mess with the collection
attribute of your models (if your model is in several collections for example).