While your title suggests firing a relationship, you mention
EOQualifiers in your text, so I'm not sure if you're attempting to get a
subset of a relationship, or just do an open query.
If you want to get a subset of a relationship and the relationship results are not large (and will not grow to be large), you could always
write a method on the object that would just iterate over the relationship
and return the right group. If the result set would normally be too
large, I would suggest either changing the way the schema works, or creating
a subentity of the target entity in a way that one sub-entity of the target
entity would be the desired set.
As an example, if you have a relationship to an object that stores a
complete history (like maybe customer->>orders), and you just want the
open orders, you might consider subclassing order to have CompleteOrder and
OpenOrder, qualifying the subclasses on open=TRUE or something like that. In this way, you could have customer->>completeOrders and
customer->>openOrders.
If you want to generate a query, you can just create an EOQualifier
with the right condition, like:
EOQualifier.qualifierWithQualifierFormat("condition=%@", new
NSArray(desiredCondition));
Does this answer your question?
Ken Anderson
President
Going Flying, Inc.
On May 6, 2005, at 12:36 PM, DevReseune wrote:
Hi,
I want to select all Enterprise objects that all their Employees check a condition. I don't know how to create an EOQualifier to do that. I
know how to select enterprises that at least one employee checks the condition, but not all.
Thanks for your response.
Frédéric _______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription: