Skip to content

Commit 07b30b2

Browse files
committed
Made all inner relations delegate saving of records to its containing record
1 parent 1a45b98 commit 07b30b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/platform/src/data/Model.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ Ext.data.Model = Ext.extend(Ext.util.Stateful, {
333333
* @return {Ext.data.Model} The Model instance
334334
*/
335335
save: function(options) {
336+
if (this.innerOf) {
337+
return this.innerOf.save(options);
338+
}
336339
var me = this,
337340
action = me.phantom ? 'create' : 'update';
338341

0 commit comments

Comments
 (0)