-
6 Oct 2012 3:16 PM #1
Model association bug
Model association bug
I haven't had much time to investigate on this,
but I think I spotted a bug/problem.
When you describe a model -> model assosiaction (hasMany / hasOne) the getters/setters are not correctly placed.
This occurs with extjs 4.1.x
It *might* be a loading time issue or just a glitch.
If you don't explicitly define a setter/getter you end up with this:
ownerProto[getterName] = me.createGetter();
ownerProto[setterName] = me.createSetter();
where getterName and setterName are:
getAPPNAME.models.SomeModel
while it should be
getSomeModel
this can either be fixed at architect level or extjs level...
as long as there is consistency...
M.
-
6 Oct 2012 3:17 PM #2
temporary fix:
manually set getters/setters in sencha architect!
M.
-
6 Oct 2012 3:56 PM #3
similar problem with foreignKey and other stuff...
to fix, explicitly set the correct values...
-
9 Oct 2012 1:42 PM #4
corvonero -
It does sound like you have spotted a potential bug but we'll need some more details in order to troubleshoot and fix this issue. Could you provide a set of steps that illustrate the issue?Aaron Conran
@aconran
Sencha Architect Development Team
-
9 Oct 2012 2:35 PM #5
Aaron Conran
@aconran
Sencha Architect Development Team
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote