Assuming the User->Posts->Comments Model structure described in the Ext.data.Model API entry, I'm wondering how I should fit the pieces together so that my User-store loads no associated models untill one gets selected.
Basically, I want a grid of Users, and a view of Posts and Comments for the selected User, but I don't want to load all the Posts and Comments for all Users in the view.
I'm assuming when I load a User, it will automatically load its associated Posts and Comments from their configured proxies, or can I control when that happens somehow? I see the autoLoad/autoSave config options, but they don't seem to be what I need.
How does that fit with a Users proxy that loads not only users, but Posts and Comments as well? Could I have my users proxy return an empty set of Posts and Comments, so that the Model think it's been fully loaded, and then manually trigger loading Posts and Comments from their proxies when selecting a User?
Would the best solution be to not associate the models in this scenario, and manage the stores programatically, or is there an intended way to configure this sort of thing?
I don't want to autosave anything. But I would like a change to a post, to effectuate marking the User as dirty. (Due to my actual entities consisting of concepts other than users and posts.) That is I would like to select a User, edit/add a post, and then save the User (with his/her posts).
As you can see I'm rather confused on the subject, and any help to clear up how this is intended would be greatly appreciated.
Thanks in advance,