• 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: Deleting Flattened Relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting Flattened Relationships


  • Subject: Re: Deleting Flattened Relationships
  • From: Chuck Hill <email@hidden>
  • Date: Mon, 20 Feb 2006 10:33:21 -0800


On Feb 19, 2006, at 4:02 PM, James Cicenia wrote:

I have a flattened relationship on a many to many.

ObjectA <-->> ObjectB <<--ObjectC

I have objectA owning destination and cascade delete set in EOModeler.
I do the same with Object C

1) Is this the correct way to setup EOModeler?

Almost, see below.


2) Now will deleting either Object A or Object C automatically delete the related ObjectB records?

Yes, though it is always good to test assumptions that you are unsure of in your unit tests. You should also have Nullify set on the relationships out of ObjectB so that if an ObjectC is deleted, dangling references to it are not left in ObjectAs.


Chuck

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific 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: 
 >Deleting Flattened Relationships (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Most efficient character parsing.
  • Next by Date: Re: Most efficient character parsing.
  • Previous by thread: Deleting Flattened Relationships
  • Next by thread: Making a dynamic Style sheet, suggestions
  • Index(es):
    • Date
    • Thread