PDA

View Full Version : [FIXED] Dependency Order of Models is not maintained when opening a project



kennym
26 Apr 2012, 1:09 PM
After having saved my project, and restarting Sencha Architect a modal with the message 'TypeError: 'undefined' is not an object' is being shown. It is not quite verbose and useful for debugging.

I am not able to trace down the error source by myself.

The project files are here:
34573

It would be great if you could point me to the error if you eventually find it, in order to not loose my work.

aconran
26 Apr 2012, 2:14 PM
We've uncovered what the bug is and will work to get a fix in for you.

The problem is that Architect is restoring the "Article" model before restoring the "Image" model which it depends on via a HasOne relationship.

kennym
27 Apr 2012, 5:05 AM
We've uncovered what the bug is and will work to get a fix in for you.

Thanks! Looking forward towards the fix.

aconran
28 Apr 2012, 12:33 PM
Another user reported the same/related issue.
http://www.sencha.com/forum/showthread.php?196761-Crash-after-trying-to-add-a-HasOneAssociation-to-a-Model

jjohnston
30 Apr 2012, 1:34 PM
Thanks for reporting the issue. It turned out there was a bug in Architect where it did not properly handle model names such as "Image" which collide with existing global objects. We now handle this properly. The fix will be included in an upcoming update.

kennym
2 May 2012, 12:21 PM
Thanks for the update on this issue!