To Many Fault and Locking
To Many Fault and Locking
- Subject: To Many Fault and Locking
- From: Hunter Hillegas <email@hidden>
- Date: Sun, 16 May 2004 13:19:05 -0700
I have an entity, Hotel, that has a toMany relationship with another
entity, Restaurant.
I fetch a hotel via a locked editing context. It fetches fine.
I assume at this point that the restaurants() relationship hasn't been
fetched, it is a fault.
Later on in the same component, I call restaurants().count(). This
triggers all of the locking exceptions, as at that point the EC that
the object is in has been unlocked... So... Is the best thing to do
here to fire that fault before I unlock the EC, right after I do the
fetch?
Hunter
_______________________________________________
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.