Ricardo,
As others have pointed out, this is not allowed. If you let us know
the context you want to use it in, maybe we can suggest alternatives...
Ken
On Mar 26, 2009, at 3:16 PM, Ricardo J. Parada wrote:
Hi All,
If I have an EO that has not been saved to the database (i.e. newFoo
in my code below), is it possible to do the following:
Foo localFoo = newEO.localInstanceIn(localEditingContext());
Normally I get the error:
java.lang.IllegalStateException: You attempted to localInstance
<com.model.Foo pk:"null">, which has not yet committed.
But I think that it should be allowed, even if that requires that I
get a primary key for localFoo.
Does anybody know if that can be accomplished??
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com
This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]