Re: EOQualifier Question
Re: EOQualifier Question
- Subject: Re: EOQualifier Question
- From: James Cicenia <email@hidden>
- Date: Wed, 24 Mar 2004 16:17:16 -0600
well I converted it to a fetch and it worked!
So I will go with that for now.
-James
On Mar 24, 2004, at 4:06 PM, arturo wrote:
I believe qualifiers work the same regardless of in-memory or database
operation.
So, I think your EOKeyValueQualifier (typing from memory) would be
something
like
EOQualifier qual = new
EOKeyValueQualifier("rosterMembers.resource.tosuser",
EOQualifier.QualifierOperatorEqual,
thisUser);
NSMutableArray results = (NSMutableArray)
EOQualifier.filteredArrayWithQualifier(portfolio.projects(),qual);
The gotcha here, of course, is that it will silently fail if there is
a typo
in the keypath. Should the above be touser rather than tosuser?
-arturo
----- Original Message -----
From: James Cicenia
To: arturo
Cc: WOdev List List
Sent: Wednesday, March 24, 2004 4:23 PM
Subject: Re: EOQualifier Question
I am not doing this qualifier against the sql but against the array
from a
relationship..
Does that relationship follow the key paths?
NSMutableArray results =
(NSMutableArray) EOQualifier.filteredArrayWithQualifier(
portfolio.projects(),andQualifier);
or does it have to be a fetch?
-James
On Mar 24, 2004, at 2:00 PM, arturo wrote:
I do this sort of thing often. I think your problem is that first
addObject.
What I do is create a EOKeyValueQualifier. I almost never use
qualifierWithQualifierFormat because my qualifications tend to "too
specific." By that I mean I don't need the flexibility of qWQF.
-arturo
----- Original Message -----
From: "James Cicenia" <email@hidden>
To: "WOdev List List" <email@hidden>
Sent: Wednesday, March 24, 2004 2:17 PM
Subject: EOQualifier Question
I have a relationship like so:
project -->> rostermembers <<--> resource <--> user
should this work?:
args.addObject("rosterMembers.resource.tosuser");
args.addObject(thisUser);
myQualifier3 = EOQualifier.qualifierWithQualifierFormat("%@ = %@",
args);
I can't seem to get this qualifier to work..
Wondering if this is actually possible to find those projects?
-James
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.