• 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
Flattened Relationships and storedValueForkey()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Flattened Relationships and storedValueForkey()


  • Subject: Flattened Relationships and storedValueForkey()
  • From: David Avendasora <email@hidden>
  • Date: Fri, 24 Oct 2008 11:01:59 -0400

Hi all,

I am trying to flatten some relationships for connivence sake. For example:

Here's the structure:

RoutingComponent <<-> RoutingStep <<-> Routing <<-ManufacturingLine

I'm flattening the routingStep().routing().manufacturingLine() relationship on RoutingComponent into simply manufacturingLine().

Sure, I could easily write my own convenience method to do this, but I figured this is exactly one of the things that flattening is for.

The problem is:

foo.storedValueForKey("manufacturingLine") returns null,

But,

foo.valueForKeyPath("routingStep.routing.manufacturingLine") returns the expected ManufacturingLine.

I've made substantial changes to my Veogen templates, but I don't see the standard ones handling this either for flattened relationships.

Am I just horribly abusing flattening?

Dave
_______________________________________________
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: Flattened Relationships and storedValueForkey()
      • From: Florijan Stamenkovic <email@hidden>
  • Prev by Date: RE: Running tests from ant on a continuous integration server
  • Next by Date: Re: Question: Best practice for switching db connections as build time
  • Previous by thread: Re: Question: Best practice for switching db connections as build time
  • Next by thread: Re: Flattened Relationships and storedValueForkey()
  • Index(es):
    • Date
    • Thread