entity keypath arithmetic?
entity keypath arithmetic?
- Subject: entity keypath arithmetic?
- From: Jonathan Rochkind <email@hidden>
- Date: Wed, 18 Feb 2004 16:33:01 -0600
Let's say I've got an entity "Employee". And I've got a keypath
through to-one relationships that leads from that entity, say
"toDepartment.toSector" or something.
Is there an easy way using EOF convenience methods to figure out what
entity that keypath points to, in only a few lines of code? I know
how to do it by hand, breaking the keypath into components and
interrogating the EOEntity and EORelationship objects, and I guess it
would only take a dozen or two lines of code, but I'm wondering if
there's an easier built in way.
--Jonathan
_______________________________________________
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.