• 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: OEF delete cascade not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OEF delete cascade not working


  • Subject: Re: OEF delete cascade not working
  • From: Guido Neitzer <email@hidden>
  • Date: Wed, 8 Aug 2007 15:51:47 -0600

On 08.08.2007, at 15:20, Guilherme melo wrote:

none of the delete cascade rules are working in my project , deny and no action works fine , is there anyway for me to debug this , i am logging the sql statements and it never tries to delete the second entity , is there some way to know why?

Are you sure you have set it up correctly? EOF normally traverses the relationship first, deletes the stuff from the relationship (for cascade) and then deletes the object itself.


So you need the relationship in your EOModel with the delete rule. You won't see a "delete from foo where ... cascade" and even the relationship in the database is setup without the delete rule. You have to keep that in mind when you remove relationships from the model - that will result in errors thrown in the database.

cug
_______________________________________________
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


  • Follow-Ups:
    • Re: OEF delete cascade not working
      • From: Guilherme melo <email@hidden>
    • Re: EOF delete cascade not working
      • From: Guilherme melo <email@hidden>
References: 
 >OEF delete cascade not working (From: Guilherme melo <email@hidden>)

  • Prev by Date: Re: Newer Version of Axis?
  • Next by Date: Re: Newer Version of Axis?
  • Previous by thread: OEF delete cascade not working
  • Next by thread: Re: EOF delete cascade not working
  • Index(es):
    • Date
    • Thread