Bill,
It sounds to me like you may be holding onto (and attempting to use)
references to deleted objects, either in a display group or other
array containing references to your EO's. It's hard to say without
more information like what exceptions are getting thrown, etc.
It is my understanding that using ec.refreshAllObjects() should be
used sparingly. If you're having to use this method a lot then it's
likely you are doing something else wrong. There may be a better
technique to accomplish what you really want.
Hopefully, Chuck Hill will chime in and give you the real lowdown on
this one. Also if you don't have his book, you should think about
buying it. The book contains the most in-depth explanation of this
stuff that I've seen to date.
On Apr 11, 2006, at 2:19 PM, WebObjects wrote:
WOCrew,
I’m getting ‘safe’ results when using “ec.refreshAllObjects();”
prior to
selecting and deleting objects from my database/entities. Without
it I get
all sorts of problems with context(s) not being in sync.
Is there another or additional safe practice that I should be
observing, to
ensure newly added or updated records are free for deletion?
Much appreciation,
-Bill
--
Robert Walker
[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]