In moving a project over to Project Wonder, I'm happy to say that things are
going very smoothly. Today I've come across an issue with this code:
EOEnterpriseObject pgEO = (EOEnterpriseObject)
currentTrial.valueForKey("programGrouping");
String programGroupingStr = (String)
pgEO.valueForKeyPath("displayName");
return programGroupingStr;
Previously when pgEO did not exist, (a valid result) the code would continue
to run and I'd simply get null in programGroupingStr. The value for the pgEO
after line one is this:
{values = {programGroupingId =
<com.webobjects.foundation.NSKeyValueCoding$Null>; displayName =
<com.webobjects.foundation.NSKeyValueCoding$Null>; bixidentity = "null"; };
this = "<com.webobjects.eocontrol.EOGenericRecord 7e6bc5aa
_EOIntegralKeyGlobalID[BIXProgramGrouping (java.lang.Integer)0]>"; }
Now using Project Wonder, the value of pgEO becomes:
<er.extensions.eof.ERXGenericRecord pk:"0">
and when trying to execute the second line:
ObjectNotAvailableException: No er.extensions.eof.ERXGenericRecord
found with globalID: <BIXProgramGrouping: [programGroupingId: '0']
What is the best way to deal with this scenario?
Calven
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]