Flattened Relationships and storedValueForkey()
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