Custom association classes - [PATCH]
Sorry if this not the right forum for this.
I needed to implement a custom association class and ran into several problems:
- the Model class uses some unorthodox loading method
- the Association "create" classmethod does not accept any type other than the three builtins
Why this arbitrary limitation ? I'm sure there is a valid reason for putting these restrictions in place that I overlooked.
Anyway, please find a patch attached that can serve as a basis for allowing custom association classes.
The changes are the following:
- add a "cardinality" class attribute on all associations. This is then used in Model.getAssociatedData instead of the type itself.
- add a default case to the static create classmethod, defaulting to Ext.create(association.type)
Thank you for the contribution. Your suggested has been passed along: EXTJSIV-6343
What does the "EXTJSIV-6343" identifier refer to ?
Can I use it (in a bug tracker perhaps) to track the state of the issue ?
This is an internal reference to our tracking system. It can be used in future requests for lookup.
Tags for this Thread