• 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
NULL being set for PK on ec.deleteObject()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NULL being set for PK on ec.deleteObject()?


  • Subject: NULL being set for PK on ec.deleteObject()?
  • From: Drew Thoeni <email@hidden>
  • Date: Thu, 24 Mar 2005 08:26:47 -0500

I have a main object (Student) with several related objects (Address, PaymentMethod, and StudentClasses). The slightly different thing is Address also has a relationship with PaymentMethod.

Cascade delete rules have been set in Frontbase so, when deleting a Student in Frontbase, all associated rows are properly removed.

When I attempt to delete Student in WO and review the SQL logging, the Student and StudentClasses are removed, but the Address and PaymentMethod are not. I suspect this is due to the relationship between them.

Since there is not a method of informing EOModeler about cascade rules, to solve this I have picked these arrays (Address and PaymentMethod) from Student and incremented through them, deleting each one specifically.

Question: Is this the proper method?

Regards,

Drew

_______________________________________________
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: NULL being set for PK on ec.deleteObject()?
      • From: Chuck Hill <email@hidden>
    • Re: NULL being set for PK on ec.deleteObject()?
      • From: Sacha Mallais <email@hidden>
  • Prev by Date: C9 ResourceStreamer & MySQL
  • Next by Date: Re: NULL being set for PK on ec.deleteObject()?
  • Previous by thread: C9 ResourceStreamer & MySQL
  • Next by thread: Re: NULL being set for PK on ec.deleteObject()?
  • Index(es):
    • Date
    • Thread