View Full Version : setting proxy of associated model

28 May 2012, 11:46 PM

i can't find the right way to do it.

i have a model 'application' with an associated model 'version' with an hasMany relationship

How should i set the proxy of my version model to build its url from the url of the proxy of the application model following the syntax:

i though it was automatically set by sencha but apparently not.

Feel free to redirect me i there is an example somewhere.
Thanks for your help.

7 Jun 2012, 12:11 PM
I'm not sure I understand. You should set the proxy config when you create the model definition

Ext.define('MyModelName', {
extend : 'Ext.data.Model',

proxy : {...}