• 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
To Many Fault and Locking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: To Many Fault and Locking
      • From: Arturo PĂ©rez <email@hidden>
  • Prev by Date: Golive CS wo
  • Next by Date: Re: XHTML/WO help for XCode
  • Previous by thread: Golive CS wo
  • Next by thread: Re: To Many Fault and Locking
  • Index(es):
    • Date
    • Thread