• 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
Re: still crazy after all these years
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: still crazy after all these years
      • From: Mike Schrag <email@hidden>
References: 
 >still crazy after all these years (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Pre-Fetching and To-Manys
  • Next by Date: Re: still crazy after all these years
  • Previous by thread: still crazy after all these years
  • Next by thread: Re: still crazy after all these years
  • Index(es):
    • Date
    • Thread