• 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: EO Not deleting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EO Not deleting


  • Subject: Re: EO Not deleting
  • From: Joe Moreno <email@hidden>
  • Date: Fri, 02 Jan 2009 16:00:47 -0800

I've made this mistake before and I keep forgetting...

I forgot to remove the EO from it's relationship before deleting it. Once I did that, the EOs were deleted as expected.

I'm not sure why EOF would sometimes delete the EO and sometimes it didn't - but, unhooking it before the delete solved the problem is all cases.

Cheers,
Joe

On Dec 31, 2008, at 17:33:12, Joe Moreno wrote:

Happy New Year!

I believe I've seen this issue before, but I don't recall what I'm doing wrong...

I have an EO deleting itself from an editing context, but, sometimes, only the EO's foreign key is getting set to NULL, which has the same effect of deleting the EO. Other times, the row in the database actually gets deleted.

The SQL going to the database sometimes is DELETE and sometimes it's:
UPDATE DEPARTMENT SET OID_EMPOYEE = NULL WHERE OID = ?...

Did I cross EC or something else bad?

Thanks,
Joe

_______________________________________________ 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: EO Not deleting
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Test, ignore
  • Next by Date: test
  • Previous by thread: Test, ignore
  • Next by thread: Re: EO Not deleting
  • Index(es):
    • Date
    • Thread