PDA

View Full Version : Saving a model with a hasOne association - ExtJS 4.2



henriqueo
2 Apr 2013, 5:35 PM
Hi guys,

Does ExtJS 4 support saving a model with a 'hasOne' association?
If so how to?

Cheers

slemmon
4 Apr 2013, 1:12 PM
I found where a community member has posted an example on jsfiddle of loading a record with a hasOne association. You might take a look at it and modify the example code using the model's save (http://docs.sencha.com/ext-js/4-2/#!/api/Ext.data.Model-method-save)() method to see how it looks through the save process.

http://jsfiddle.net/el_chief/yrTVn/2/