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

Re: EOF delete cascade not working


  • Subject: Re: EOF delete cascade not working
  • From: Guilherme melo <email@hidden>
  • Date: Thu, 09 Aug 2007 10:51:07 -0300

Guido Neitzer wrote:
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

The relationship is set as :

EntityA <----deleteCascate---->EntityB<<---NoAction--->EntityC
the relationship between A and B is two way ( both cascade and mandatory )
that should work right ?

_______________________________________________
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: 
 >OEF delete cascade not working (From: Guilherme melo <email@hidden>)
 >Re: OEF delete cascade not working (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Flex integration with WO
  • Next by Date: Re: OEF delete cascade not working
  • Previous by thread: Re: OEF delete cascade not working
  • Next by thread: Re: OEF delete cascade not working
  • Index(es):
    • Date
    • Thread