View Full Version : Can't define a custom association

11 Apr 2013, 5:27 AM
Ext.data.association.Association can only support default association types. We need to create a custom hasMany association which supports multiple primary and foreign keys. We have also implemented a ManyToMany association with junction stores to store only foreign keys of other tables. To do so, however, we need a patch in Ext.data.association.Association class create function to support custom association. The same bug existed in Sencha Touch and it is already fixed with the following link:


It would also be nice to include multiple primary and foreign keys using multiple filters in the Ext.data.association.HasMany class.

15 Apr 2013, 9:22 AM
For now you can use your patch and you can extend the hasMany (or manyToMany) class.

15 Apr 2013, 11:42 PM
Thanks for the response but is there any plans to fix this in the future releases?