Success! Looks like we've fixed this one. According to our records the fix was applied for
DSGNR-7659
in
Architect 4.2.
-
Sencha Premium Member
Cannot define Ext.data.field.Field.reference config as an object
Hi all,
Today I migrated from SA 4.0 to SA 4.1.1 and after have error on references defined on my models.
The matter is on config reference of Ext.data.field.Field class.
With SA 4.0, I can define it as an object ilke as below:
Code:
reference: {
type: 'folder.Folder',
inverse: 'folder'
}
With SA 4.1.1, it has been converted into a string
Code:
reference: '{ type: \'folder.Folder\', inverse: \'folder\'}'
When i try to change type of reference config, I can select only Model or String, not Object as in SA 4.0.
Could you please advise if it's a bug of SA 4.1.1 or I should define my references in another manner ?
Thanks in advance.
-
Hello
I am very sorry for this inconvenience, this is a bug http://docs.sencha.com/extjs/6.2.1/m...#cfg-reference
I will send you PM with workaround.
Regards
Petr
-
Sencha Premium Member
Anyway that you can share the workaround as I would be interested to try a few things. Mostly around renaming the inverse association, and I believe this could maybe done that way...
Cheers
Nicolas
-

Originally Posted by
nclemeur
Anyway that you can share the workaround as I would be interested to try a few things. Mostly around renaming the inverse association, and I believe this could maybe done that way...
Cheers
Nicolas
Hi Nicolas
What exactly is bothering you? Is it reported as a bug somewhere? If there is something broken / could be improved? It would be nice if we could improve this for all the users rather than trying creating work-around for one user.
Thanks
-
Sencha Premium Member

Originally Posted by
petr.vecera
Hi Nicolas
What exactly is bothering you? Is it reported as a bug somewhere? If there is something broken / could be improved? It would be nice if we could improve this for all the users rather than trying creating work-around for one user.
Thanks
Well I did ask the question in the following thread https://www.sencha.com/forum/showthr...sociation-name
So I am still hunting for a good solution to this problem...
Cheers
Nicolas
-
Sencha Premium Member

Originally Posted by
petr.vecera
I'm interested too in the workaround, because it broke my app as I was relying on this "inverse" config. Could you please share it? Or send by PM? I opened a thread today for the same issue: https://www.sencha.com/forum/showthr...-object-config.Thanks !
[edit] Thanks for the fix in PM! Fixed it.
-
I need a workaround for this.
Thanks
Matt