Extjs 5, data model association & load nested data
trying to make this work.... I want to load nested data on two object model Ext.application({ name : 'MyApp', launch : function() { Ext.define('MyApp.model.Address', { extend: 'Ext.data.Model', entityName: 'Address', fields: [ { name: 'id', type: 'int' }, { name: 'addressLine', type: 'string' }, { name: 'city', type: 'string' }, { name: 'created', type: 'date', dateFormat: 'time', persist: false } ] }); Ext.define('MyApp.model.User', { extend: 'Ext.data.Model', entityName: 'User', fields: [ { name: 'id', type: 'int' }, { name: 'address', reference: 'Address' }, { name: 'name', type: 'string' }