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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to