• 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
Delete of parent object triggers delete of to-one destination object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Delete of parent object triggers delete of to-one destination object


  • Subject: Delete of parent object triggers delete of to-one destination object
  • From: "Ricardo J. Parada" <email@hidden>
  • Date: Tue, 05 Oct 2010 19:22:57 -0400

Hi,

When I remove a child from a many-to-many relationship in the parent and delete the child I see EOF deletes the child in the database and  the corresponding record in the join table.  That's great.  However, the child object has a to-one called mimeContent and I'm also seeing a delete for the destination object:

DELETE FROM MIME_CONTENT WHERE MIME_CONTENT_ID = ?" withBindings: 1:26954(NeededByEOF0)
1 row(s) deleted

I'm trying to figure out why this record is being deleted.  I already checked the "Own Destination" for the mimeContent to-one and it's not set.  The "Delete Rule" is set to "No Action".   So I don't quite understand why it's getting deleted.  I don't want it to be deleted.

Any ideas?

Thanks,
Ricardo

 _______________________________________________
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: Delete of parent object triggers delete of to-one destination object
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: [ANN] RESTNotes code sample app
  • Next by Date: Re: Delete of parent object triggers delete of to-one destination object
  • Previous by thread: Re: [ANN] RESTNotes code sample app
  • Next by thread: Re: Delete of parent object triggers delete of to-one destination object
  • Index(es):
    • Date
    • Thread