still crazy after all these years
still crazy after all these years
- Subject: still crazy after all these years
- From: Mike Schrag <email@hidden>
- Date: Wed, 24 Sep 2008 17:33:46 -0400
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);
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?
ms
_______________________________________________
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