ExtJS, store, HasMany - BelongsTo and update process: howto?
问题 I have two data models: Writer.AttributValeur and Writer.Produit . Writer.Produit has HasMany / BelongsTo relationship with Writer.AttributValeur . Thus the definition is like this: Ext.define('Writer.AttributValeur', { extend: 'Ext.data.Model', fields: [{ name: 'id', type: 'int', useNull: true }, 'description', 'val' ], belongsTo: 'Writer.Produit' }); Ext.define('Writer.Produit', { extend: 'Ext.data.Model', fields: [{ name: 'id', type: 'int', useNull: true }, 'titre', 'description' ],