Re: still crazy after all these years
Re: still crazy after all these years
- Subject: Re: still crazy after all these years
- From: Lachlan Deck <email@hidden>
- Date: Thu, 25 Sep 2008 10:01:45 +1000
On 25/09/2008, at 7:33 AM, Mike Schrag wrote:
In this scenario, Article has a flattened many-to-many relationship
named "categories" to Category via the ArticleCategory join table.
NSArray<Article> articles =
Article.fetchArticles(ERXEC.newEditingContext(),
Article.CATEGORIES.is(_category), null);
EOQualifier.QualifierOperatorContains is what I would normally use
(WO5.3.x)
This call does exactly what I want -- return all the articles that
are in the given category ........ but ...... it shouldn't ........
right? (and it also does it with exactly the SQL generation that you
would expect)
Am I crazy? Has this always worked? Is this new in 5.4.x? This is
a worldview-rocking query :) I have a feeling I'm being stupid
here, or my late night iPhone app writing has gotten the better of
me, but I feel like I would have had to have gone to
ERXToManyQualifier or one of Pierre Bernard's qualifiers to do this
in the past?
Have you tested with pre 5.4?
with regards,
--
Lachlan Deck
_______________________________________________
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