• 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: Newbie: Many to Many, EOAndQualifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Many to Many, EOAndQualifier


  • Subject: Re: Newbie: Many to Many, EOAndQualifier
  • From: Art Isbell <email@hidden>
  • Date: Tue, 6 May 2003 09:38:28 -1000

On Tuesday, May 6, 2003, at 05:03  AM, Benjamin Miller wrote:

NSMutableArray qualifiers = new NSMutableArray();
qualifiers.addObject(EOQualifier.qualifierWithQualifierFormat("tools.to o
l = '90mm'", null));
qualifiers.addObject(EOQualifier.qualifierWithQualifierFormat("tools.to o
l = 'Gandolfi Field Camera'", null));
EOAndQualifier comboQualifier = new EOAndQualifier(qualifiers);


When using just one source EOQualifier everything works fine, but when
using two or more source qualifiers no Creation entities are returned
from the fetch spec.

That's because no object has a tools.tool value of both "90mm" and "Gandolfi Field Camera". Try using an OR qualifier:


EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat("tools.tool = '90mm' or tools.tool = 'Gandolfi Field Camera'", null);

Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Newbie: Many to Many, EOAndQualifier (From: Benjamin Miller <email@hidden>)

  • Prev by Date: Newbie: Many to Many, EOAndQualifier
  • Next by Date: apache2
  • Previous by thread: Newbie: Many to Many, EOAndQualifier
  • Next by thread: apache2
  • Index(es):
    • Date
    • Thread