Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: References accross models



BTW, I think Project Wonder might have a fix for this bug ... ERXModelGroup.checkInheritanceRelationship gets wired up automatically, and it sounds like it MIGHT be a fix for this problem:

/**
* Corrects a strange EOF inheritance issue where if a model gets loaded and an entity that has children located in
* a different model that hasn't been loaded yet will not be setup correctly. Specifically when those child entities
* are loaded they will not have their parentEntity relationship set correctly.
*/

ms

On Dec 15, 2006, at 5:15 AM, Tonny Staunsbrink wrote:

Thanks for the reference.

I tried rearranging the entities (though this particular subentity was loaded after the super entity - but other subentities was loaded befure their superentity), but i didn't solve the problem. The model referencing the inheritance hierarchy is loaded after the model with the inherticane hierarchy. And with the hand editing of the index.eomodel file the super entities was loaded before the subenties. So the fix mentioned in the wicki should be in place.

What really puzzles me is that the error only shows up, when the models are connection to different databases. If all the data are in the same dabase, there is no problem. Neither is there at problem when referencing the leaves of the inheritance hierarchy. 

Anyhow, gues I'll have to stop using cross model refences and implement som other solution. The instability of this worries me quite a bit.

And yeah, you're right access to the core code, and fix these issues there would be nice. 

The lack of bugfix updates and the being unable to fix these things myself makes open source alternatives seems more and more appealing, even though some of them might not have tools like EOModeller (I, for one, don't find it that buggy  ;-) ).

Cheers
Tonny

On Dec 14, 2006, at 7:41 PM, Francis Labrie wrote:

Hi,

Mike Schrag a écrit :
Wow -- that's really ridiculous.  I need to take a look at Entity Modeler and maybe adjust my sort ordering when I write entities out to implement that workaround for you automatically.


Yeah, that's another crazy bug. Fixing Entity Modeler would provide a nice automatic work around for entity initialization order problem, but unfortunately not for model initialization order problem... 

I would really like to get hands on the core EOF code to fix these damned bugs directly. :-(


On Dec 14, 2006, at 11:12 AM, Francis Labrie wrote:
Tonny Staunsbrink wrote:
[...]
Any input to this will be much appreciated.

BTW: it is single table inheritance and all the entities of the inheritance hierarchy a placed in the same model (A).



--
Francis Labrie
Saint-Bruno-de-Montarville, Quebec, Canada

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden

References: 
 >References accross models (From: Tonny Staunsbrink <email@hidden>)
 >Re: References accross models (From: Francis Labrie <email@hidden>)
 >Re: References accross models (From: Mike Schrag <email@hidden>)
 >Re: References accross models (From: Francis Labrie <email@hidden>)
 >Re: References accross models (From: Tonny Staunsbrink <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.