Re: Fetching from related object
Re: Fetching from related object
- Subject: Re: Fetching from related object
- From: Art Isbell <email@hidden>
- Date: Fri, 23 Apr 2004 15:15:38 -1000
On Apr 23, 2004, at 12:54 PM, Randall Perry wrote:
qual = EOQualifier.qualifierWithQualifierFormat("custNo = '" +
custInfo.custNo() + "' and dateTime > '" + dateOneYearAgo, null);
There is a to-one relationship defined in EOModeler between the Log and
CustView entities.
You might run into trouble embedding dates in the qualifying format
string. It's usually preferable to take advantage of EOF's ability to
property format "where" clauses (and easier to read as well). Assuming
the to-one relationship is Log.custView:
qual = EOQualifier.qualifierWithQualifierFormat("custView = %@ and
dateTime > %@", new NSArray(new Object[] {custInfo, dateOneYearAgo}));
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.