• 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
entity relationships and userinfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

entity relationships and userinfo


  • Subject: entity relationships and userinfo
  • From: Ash Mishra <email@hidden>
  • Date: Fri, 2 Mar 2007 18:36:21 -0500

Hi, I've upgraded my webobjects projects from WO 5.1 to WO 5.3.3 and Xcode 2.4.

The new xcode has a different eomodeler that has been giving me problems. Some of my eomodels have userinfo data set on relationships.

For example:
relationships = (
{
deleteRule = EODeleteRuleCascade;
destination = MarkingForm;
isToMany = N;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = uniqueID; sourceAttribute = markingFormID; });
name = markingForm;
--> userInfo = {print = memoToMarker; };
},
....
);



The new eomodeler integrated into XCode throws an error if it tries to open a plist with a userinfo set for a relationship. The error thrown is:


Uncaught Exception:
[<NSCFString 0xabea6e20> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key userInfo.



If I remove the userInfo manually, the model will open. i.e:
{
deleteRule = EODeleteRuleCascade;
destination = MarkingForm;
isToMany = N;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = uniqueID; sourceAttribute = markingFormID; });
name = markingForm;
},



But here's the odd thing. I can add the userInfo data back to the model using the new eomodeler and save it. This results in the following changes to the plist:


{
deleteRule = EODeleteRuleCascade;
destination = MarkingForm;
--> internalInfo = {uniqueID = 194804848; };
isToMany = N;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = uniqueID; sourceAttribute = markingFormID; });
name = markingForm;
--> userInfo = {print = memoToMarker; };
},



But once again, if I then close and attempt to reopen the model, the error is thrown again.


Anyone got advice, or is this a bug with eomodeler?


thanks

Ash Mishra
email@hidden
_______________________________________________
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: entity relationships and userinfo
      • From: Guido Neitzer <email@hidden>
  • Prev by Date: Re: WANTED: WebObjects 4.51/Objective-C tutor
  • Next by Date: Re: entity relationships and userinfo
  • Previous by thread: Re: restart app from command line
  • Next by thread: Re: entity relationships and userinfo
  • Index(es):
    • Date
    • Thread