• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: EOQualifier on a toMany attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EOQualifier on a toMany attribute


  • Subject: Re: EOQualifier on a toMany attribute
  • From: Dev WO <email@hidden>
  • Date: Tue, 14 Feb 2006 10:41:39 +0100

Hello Jerry,

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.
The code is not failing in fact, it's just there's no result return.

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));
Actually I was trying with an instance of connector, I also tried with an NSArray of connector but no luck.

Here's my code:
argsStorage = new NSMutableArray();
argsStorage.addObject(selectedFormFactor); // this is a toOne
argsStorage.addObject(selectedFormType); // this is a toOne
argsStorage.addObject(new NSArray(selectedConnector)); // this is the toMany that doesn't return any results
qualStorage = EOQualifier.qualifierWithQualifierFormat ("(productFormFactor = %@) and (productFormType = %@) and (productExternalConnectors = %@)", argsStorage);


Maybe that's easier to understand than my description;)

Thanks

Xavier


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@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office





_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: EOQualifier on a toMany attribute
      • From: "Jerry W. Walker" <email@hidden>
References: 
 >EOQualifier on a toMany attribute (From: Dev WO <email@hidden>)
 >Re: EOQualifier on a toMany attribute (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: Unique attributes
  • Next by Date: Re: technique for fixing corrupted class file?
  • Previous by thread: Re: EOQualifier on a toMany attribute
  • Next by thread: Re: EOQualifier on a toMany attribute
  • Index(es):
    • Date
    • Thread