Re: EOQualifier on a toMany attribute
"Jerry W. Walker" <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, Xavier,
It would help to know how your code is failing, but I don't see why
your code wouldn't work so long as "arg" is an NSArray.
If arg is an instance of Connector rather than an NSArray, then
change your qualifier generating statement to the following:
EOQualifer myQualifier = EOQualifer.qualifierWithQualifierFormat
("connectors = %@", new NSArray(arg));
Regards,
Jerry
On Feb 13, 2006, at 6:15 PM, Dev WO wrote:
> Hi,
> I don't know if I'm doing it wrong or if I'm just misuse
> EOQualifier but:
> I have an entity a with a flattened manyToMany relationship named
> connectors on a connector entity.
>
> I need to qualify a fetch on entity a based on having connector %@
> so basically I was doing
> EOQualifer.qualifierWithQualifierFormat("connectors = %@", arg);
> arg having a connector entity.
>
> But this doesn't seemed to work...
> Am I doing this wrong?
>
> Thanks
>
> Xavier
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial
Strength Internet Enabled Systems
[email protected]
203 278-4085 office