13 May 2012 2:21 AM #1
[FIXED] Build 439 - Loops my files
Just a moment ago, I have updated my Sencha Architect to the build 439. My app used to work pretty well just before the update. After the update, I deployed the app with a very minor change (just an icon url). Then my app crashed on both Chrome and Firefox -not tested on others.
On fiddler, here is how it seems:
If you keep the page on, the loop of TourModel and TourCategoryModel goes on until the software crashes.
13 May 2012 4:09 AM #2
changes in model production
just compared my backup"s model files and the model files produced by build 439.
Build 439 produces model files with "requires" config, which was not possible and could not be done before this build. Now new model files have "requires" config with relations to other model files. I havent specified any "requires" config, it is there automatically and i cannot change it. I have to remove the requires config manually on every deploy...
13 May 2012 4:13 AM #3
autoLoad on hasmany association
I think I found what was wrong.
On my hasMany associations of my models, I had "autoload" true. Removed it and loop is gone. (i had cross-references between my models, I think this is why Extjs tried to go back and forth again and again).
14 May 2012 7:15 AM #4
This is a very serious bug! Turning off autoLoad does not fix the issue for me, and requires statements are generated for belongsTo associations as well. I have a number of infinite loading loops in my app now and it is totally useless.
This needs to be fixed ASAP as it completely breaks projects!
14 May 2012 7:51 AM #5
Could you please attach a use case where the requires is causing loading to go in a loop?
Sencha Designer Development Team
14 May 2012 8:06 AM #6
@Sottilde, can you please confirm that you dont have any cross-associations between your models? Example:
Model1 belongsTo Model2
Model2 hasMany Model1
If you have such a scheme, can you try removing one of associations? This may worth a try. My app is a little bit complex; I would have to create the issue by trying many things again. I will try to reproduce the issue when I have a more suitable time. Perhaps Sottilde could do this for us.