• 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: qualifier to check for empty toMany
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: qualifier to check for empty toMany


  • Subject: Re: qualifier to check for empty toMany
  • From: Alexis Tual <email@hidden>
  • Date: Thu, 12 May 2011 00:22:23 +0200

Hi,

John is right, if you have A ->> B, this should work :

EOQualifier qual = new ERXExistsQualifier( ERXQ.isNotNull(B.A_FK_KEY) , A.TO_BS_KEY);
ERXFetchSpecification<A> spec = new ERXFetchSpecification<A>(A.ENTITY_NAME, qual, null);

(not tested though)

hope it helps

Alex

Le 12 mai 2011 à 00:00, John Huss a écrit :

I think you can do this with ERXExistsQualifier and a Not qualifier.

John

On Wed, May 11, 2011 at 4:29 PM, Fred Wells <email@hidden> wrote:
Hey all,
Maybe I missed something but is there a way to construct a qualifier that check that a toMany relationship is empty? Simply putting in "toMany =%@, new NSArray(new Object[] {NSKeyValueCoding.NullValue}doesn't do it because it tries to check across the join table which results in no objects being found.

-fw
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: qualifier to check for empty toMany
      • From: Fred Wells <email@hidden>
References: 
 >qualifier to check for empty toMany (From: Fred Wells <email@hidden>)
 >Re: qualifier to check for empty toMany (From: John Huss <email@hidden>)

  • Prev by Date: Re: qualifier to check for empty toMany
  • Next by Date: Examles from apple webobjects 5.4.3 any good
  • Previous by thread: Re: qualifier to check for empty toMany
  • Next by thread: Re: qualifier to check for empty toMany
  • Index(es):
    • Date
    • Thread