Re: restricting qualifiers and join entities
Re: restricting qualifiers and join entities
- Subject: Re: restricting qualifiers and join entities
- From: Chuck Hill <email@hidden>
- Date: Tue, 3 Jun 2008 19:58:14 -0700
On Jun 3, 2008, at 7:26 PM, Lachlan Deck wrote:
Hi there,
Say I have entities Foo and Bar (both of which have an attribute
isDeleted) and a join FooBar and I create restricting qualifiers for
Foo and Bar of (isDeleted IS NULL OR isDeleted = 0).
Foo.fooBars() still fetches all fooBars even if pointing to a Bar
that cannot be instantiated due to the restricting qualifier.
So my question is: should EOF filter such joins automatically (i.e.,
should I file a bug) or is it just up to me to auto-apply these
restricting qualifiers?
I would expect that to work for fetches. In the past I have had a
relationship to a subclass in a single table inheritance hierarchy,
and I recall that only the correct instances were fetched. I can't
see why this should not work, I'd file a bug.
Have you checked the SQL and verified that they restricting qualifier
is not getting generated?
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