• 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: Nullify on relationship is not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Nullify on relationship is not working


  • Subject: Re: Nullify on relationship is not working
  • From: Logan Allred <email@hidden>
  • Date: Mon, 26 Jun 2006 19:07:02 -0600


On Jun 26, 2006, at 6:02 PM, Paul Suh wrote:

Logan,

A few questions for you, to make sure I'm not missing the obvious.

1) Are you looking at this in the MyEntity objects in Java or are you looking at this in the database tables?

database tables

2) Are you looking at this before or after a call to saveChanges()?

after saveChanges()

I'm also watching the SQL in the logs, and the correctly working many- to-many calls all of the UPDATE ... SET att=NULL plus the DELETE ... statements in the SQL, but the many-to-one above only generates the single DELETE ... statement.

Both deletes are triggered by the same code in a reusable D2W component:

public WOActionResults delete() {
  object().editingContext().deleteObject(object());
  object().editingContext().saveChanges();
}

thanks,
Logan

_______________________________________________
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: 
 >Nullify on relationship is not working (From: Logan & Rebecca Allred <email@hidden>)
 >Re: Nullify on relationship is not working (From: Paul Suh <email@hidden>)

  • Prev by Date: dynamic popup list
  • Next by Date: appendToResponse & anchors
  • Previous by thread: Re: Nullify on relationship is not working
  • Next by thread: dynamic popup list
  • Index(es):
    • Date
    • Thread