Thank you for reporting this bug. We will make it our priority to review this report.
Ext JS Premium Member
[FIXED-595] Request to server when accessing parent record which is already loaded
Sencha Touch version tested:
Platform tested against:
- iOS 3.2.2
- Chrome 5.0.375.125 on Linux
Parent record is being requested from the server which is already on the client, when accessing a belongsTo association from a child record.
This generates unnecessary requests to the server being that the instance is already loaded on the browser.
The parent instance should be passed down to its children when accessed via the hasMany getter.
See this URL : http://www.carvajalonline.com/tmp/se...one/index.html
Thanks for the bug report.
I've added a patch to populate the other end of the association also when loading like this. Using my patch your example code works as expected. This will make it into the next release.