Re: Need to perform another fetch?
Re: Need to perform another fetch?
- Subject: Re: Need to perform another fetch?
- From: Travis Britt <email@hidden>
- Date: Mon, 12 Apr 2004 08:50:29 -0400
On Apr 12, 2004, at 12:20 AM, Bill Reynolds wrote:
My question is this... Once I have "MyUserClass" object in my new
component, how do I update it and save changes? Do I need to pass
along the EditingContext with it somehow?
You're right that keeping it in the Session would be easier (unless
you're avoiding Session for some other reason)... But you can get the
EditingContext your EO is in using editingContext().
EditingContext ec = myEO.editingContext();
<http://developer.apple.com/documentation/WebObjects/Reference/API/com/
webobjects/eocontrol/EOCustomObject.html#editingContext()>
tb
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.