Re: Help with understanding relationships
Re: Help with understanding relationships
- Subject: Re: Help with understanding relationships
- From: email@hidden
- Date: Mon, 13 Oct 2003 11:39:26 CDT
- Priority: 3 (Normal)
[demime could not interpret encoding binary - treating as plain text]
On Sat, 11 Oct 2003 23:03:14 -0400 Arturo Pirez wrote:
> On Saturday, October 11, 2003, at 10:48 PM, Chuck Hill wrote:
> <lots of good stuff on addObject<blah><blah> :-)
>
> Here's a question I have about this. How does EOF know what the
> inverse relationship is?
>
> The reason I ask is because it doesn't always seem to work. Is it
> because I manually added
> a relationship rather than do the control-drag thing? Or is it because
> I like to rename things?
It's kind of a mystery how EOF does this. My best guess is that: EOF
looks for a relationsihp in the destination entity that uses the same
source and destination attributes, but, of course, "inversely". If
Department has a "persons" relationship from Department.primaryKey to
Person.departmentID, then EOF will look for an "inverse" relationsihp in
Person that's defined from Person.departmentID to Department.primaryKey.
If EOF isn't finding an inverse relationship that DOES meet this
criteria... then you've got me. If you have a relationship that's
defined in a non-standard way, so YOU know it's got an inverse
relationship, but it doesn't meet the above definition... then I woudln't
expect EOF to find the inverse relationship. Theoretically, there are a
couple of different methods you could use to help EOF find this
non-standard inverse relationship, but I've never used them so can't say
how well they work.
--Jonathan
>
> -------
> WebObjects in Philadelphia. You want a cheesesteak with that?
> Visit http://webobjects.meetup.com
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.