Re: EOQualifier for foreign key
Re: EOQualifier for foreign key
- Subject: Re: EOQualifier for foreign key
- From: Chuck Hill <email@hidden>
- Date: Fri, 1 Sep 2006 10:18:00 -0700
On Sep 1, 2006, at 1:12 AM, Lachlan Deck wrote:
Hi again,
On 01/09/2006, at 5:26 PM, Lachlan Deck wrote:
I'm looking at providing a global qualifier to some EOEntities
(EOEntity.setRestrictingQualifier) that involve setting qualifiers
that restrict the set of objects returned by any fetch to those
related to a particular record.
The concern is that if any of the attributes change for that
record that the above qualifier would then be out of date. So my
question is whether or not the above provides a safe foreign key
qualifier (akin to EOEntity.qualifierForPrimaryKey(NSDictionary)).
Ah. I think EOEntity.schemaBasedQualifier(EOQualifier) is what I'm
after.
As a final bit of confirmation, setRestrictingQualifier() is what EOF
uses to manage single table inheritance. If you go changing it
around, I predict that you will confuse EOF and produce peculiar bugs.
Chuck
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems. http://www.global-village.net/products/practical_webobjects
_______________________________________________
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