Re: Newbie: Many to Many, EOAndQualifier
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.