• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Inherited Relationships using Different Destinations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inherited Relationships using Different Destinations


  • Subject: Re: Inherited Relationships using Different Destinations
  • From: David Avendasora <email@hidden>
  • Date: Thu, 4 Sep 2008 22:03:16 -0400

So, I need a method on EORlationship so EOGenerator can check a Relationship to see not only if it is inherited, but if it's destination entity is different than the inherited method's destination Entity.

Currently I have:

#if (!$relationship.inherited)

I need something along the lines of:

#if (($relationship.inherited && $relationship.destination.name != $relationship.relationshipOnParent.destination.name) || (! $relationship.inherited))

What do you think, Mike?

Dave


On Sep 4, 2008, at 1:46 PM, Mike Schrag wrote:

Not ENTIRELY true ... you can override the return type to be a subclass of the parent classes' return type.

_______________________________________________ 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
  • Follow-Ups:
    • Re: Inherited Relationships using Different Destinations
      • From: David Avendasora <email@hidden>
References: 
 >Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: David Avendasora <email@hidden>)
 >Re: Inherited Relationships using Different Destinations (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: clearing a toMany relationship fault
  • Next by Date: Re: Do DA's add a page to the app's cache ?
  • Previous by thread: Re: Inherited Relationships using Different Destinations
  • Next by thread: Re: Inherited Relationships using Different Destinations
  • Index(es):
    • Date
    • Thread