Re: objectsMatchingKeyAndValue woes

2006-12-17 Thread James Cicenia
This reminds me of a bug that cost me many hours... I had a component that I named Request. OK, this was in my early days learning WO, but that "keyword" was certainly not liked. - James Cicenia On Dec 17, 2006, at 9:12 AM, Philippe Lafoucrière wrote: On 17 déc. 06, at 14:56, Miguel Arroz w

Re: objectsMatchingKeyAndValue woes

2006-12-17 Thread Philippe Lafoucrière
On 17 déc. 06, at 14:56, Miguel Arroz wrote: Hi! codePIN!? Where did that come from? Why does it work? It's an instance variable, a String exactly. The point is that I can't a variable which name is "code" only. I've search the class for possible sideeffects of using an instance variab

Re: objectsMatchingKeyAndValue woes

2006-12-17 Thread Miguel Arroz
Hi! codePIN!? Where did that come from? Why does it work? Yours Miguel Arroz On 2006/12/17, at 07:40, Philippe Lafoucrière wrote: okk, looks like a pretty nice bug here in EOF : If I change the code parameter to codePIN, the behaviour is correct. ___

Re: objectsMatchingKeyAndValue woes

2006-12-16 Thread Philippe Lafoucrière
okk, looks like a pretty nice bug here in EOF : If I change the code parameter to codePIN, the behaviour is correct. ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.ap

Re: objectsMatchingKeyAndValue woes

2006-12-16 Thread Philippe Lafoucrière
On 17 déc. 06, at 02:41, Miguel Arroz wrote: Hi! This is voodoo, but... what happens with: Agree, this is voodoo... NSArray Codes = EOUtilities.objectsMatchingKeyAndValue(ec, "Code", "code", code.toString()); not working and NSArray Codes = EOUtilities.objectsMatchingKeyAndValu

Re: objectsMatchingKeyAndValue woes

2006-12-16 Thread Miguel Arroz
Hi! This is voodoo, but... what happens with: NSArray Codes = EOUtilities.objectsMatchingKeyAndValue(ec, "Code", "code", code.toString()); and NSArray Codes = EOUtilities.objectsMatchingKeyAndValue(ec, "Code", "code", new String(code)); ? :) Could it be some kind of non-prin

objectsMatchingKeyAndValue woes

2006-12-16 Thread Philippe Lafoucrière
Hello, this problem is driving me crazy : I want to fetch a simple entity, using a functionnal key "code". Here's a simple example : public Boolean codeIsValid() { EOEditingContext ec = ((Session)session()).defaultEditingContext(); try { NSArray Codes = EOUtil