• 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
Re: Mandatory To-One Preventing Deletion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mandatory To-One Preventing Deletion


  • Subject: Re: Mandatory To-One Preventing Deletion
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 25 Apr 2005 17:16:14 -0700

I'll assume that you are properly locking the EC. I've seen this before and am wracking my brain (usually an effort in futility on Monday) trying to recall all the causes. Is is possible that a previous deletion has failed validateForDelete? Once this happens, the EC is garbage. There is no recovery that I know of.

Chuck


On Apr 25, 2005, at 3:12 PM, Hunter Hillegas wrote:

I have two entities.

FileCollection and File. File has a to-one relationship to FileCollection that is mandatory.

When I try to delete an existing File EO, I get a ValidationException stating that filecollection is a mandatory relationship...

I should be able to delete it w/o trouble, no? The action on deletion is set to nullify.

I searched the archives and found this exchange between Chuck Hill and Jonathan Rochkind that mentions a very similar situation:
http://lists.apple.com/archives/webobjects-dev/2003/Oct/msg00306.html


I don't see a resolution in that thread. Anyone have an idea what could be going on here?

Hunter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden

--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Mandatory To-One Preventing Deletion (From: Hunter Hillegas <email@hidden>)

  • Prev by Date: Re: EnhancedFileUploadTools
  • Next by Date: Re: Qualifier with key path keywords
  • Previous by thread: Mandatory To-One Preventing Deletion
  • Next by thread: Multiple (dynamic) file uploads
  • Index(es):
    • Date
    • Thread