Re: NULL being set for PK on ec.deleteObject()?
Re: NULL being set for PK on ec.deleteObject()?
- Subject: Re: NULL being set for PK on ec.deleteObject()?
- From: Sacha Mallais <email@hidden>
- Date: Thu, 24 Mar 2005 08:53:08 -0800
On Mar 24, 2005, at 5:26 am, Drew Thoeni wrote:
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.
You should probably read
http://developer.apple.com/documentation/WebObjects/UsingEOModeler/
index.html. Yes, there is a method of informing EOModeler about
cascade rules.
sacha
--
Sacha Michel Mallais - 400 lb. chimp
Global Village Consulting Inc.: http://www.global-village.net/
1. Never tell everything at once.
-- Ken Venturi, Ken Venturi's Two Great Rules of Life
_______________________________________________
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