• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
still crazy after all these years
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: still crazy after all these years
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: Pre-Fetching and To-Manys
  • Next by Date: Re: Pre-Fetching and To-Manys
  • Previous by thread: restoring a page
  • Next by thread: Re: still crazy after all these years
  • Index(es):
    • Date
    • Thread