• 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: ERXExistsQualifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERXExistsQualifier


  • Subject: Re: ERXExistsQualifier
  • From: Paul Hoadley <email@hidden>
  • Date: Fri, 24 Apr 2015 09:16:40 +0930

I haven't got anything significant to say about Thomas's original post, but just to add a couple of data points:

On 24 Apr 2015, at 5:36 am, Fabian Peters <email@hidden> wrote:

AFAIK, it should work for multiple tables, except if any of them use compound primary keys.

This seems to be the received wisdom, but it's just not true in the general case.  I have used ERXExistsQualifier on an entity with a compound PK just fine.  What you _can't_ do (for obvious reasons) is force it to generate SQL with an IN clause.  Whether there are edge cases where you can't combine ERXExistsQualifier, compound PKs, and SQL with an EXISTS clause, I don't know.

You may want to try the ExistsInRelationshipQualifier from the Houdah frameworks, which does handle flattened many-to-many relations.

I certainly can confirm that flattened relationships break ERXExistsQualifier every time.


-- 
Paul Hoadley
http://logicsquad.net/


 _______________________________________________
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: ERXExistsQualifier
      • From: David Avendasora <email@hidden>
References: 
 >ERXExistsQualifier (From: Thomas LATTER <email@hidden>)
 >Re: ERXExistsQualifier (From: Fabian Peters <email@hidden>)

  • Prev by Date: Re: question on ERMailDeliveryHTML
  • Next by Date: Re: WO Components
  • Previous by thread: Re: ERXExistsQualifier
  • Next by thread: Re: ERXExistsQualifier
  • Index(es):
    • Date
    • Thread