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

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:

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

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.

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.

28 Apr 2012, 12:33 PM
Another user reported the same/related issue.

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.

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