View Full Version : How to populate a store via associations on the model

25 Aug 2011, 5:27 AM
Lets say I have:

GroupsModel --> GroupsStore with a Rest Proxy --> GroupList
ItemsModel --> ItemsStore with a Rest Proxy --> ItemList

Here the GroupsModel has a "hasMany" relationship with ItemsModel. Now when i do load the groupsStore it comes back with both the groups and items data. The data gets rendered in the GroupsList but its corresponding data is never rendered in the ItemsList. The ItemsStore never gets populated.

My question is how do i get the store populated via associations?

Also if, i get a group record and do group.items() i see the data in firebug, but calling group.items().load() gives me "You are using a ServerProxy but have not supplied it with a url"