Re: Owns Destination problem
Re: Owns Destination problem
- Subject: Re: Owns Destination problem
- From: David Avendasora <email@hidden>
- Date: Tue, 19 Aug 2008 15:22:10 -0400
Noooooo! Sob. Sniff.
This does sound really similar, but I'm not convinced yet that what I'm doing _should_ work. Here's the exact flow. I'm the only one using the app and I'm using the Default Editing Context.
For review: ManufacturingSchedule <->> ScheduledRouting MS->>SR Owns Destination
MS ->>SR Cascade Delete Rule SR->MS is required by SR
SR->MS Nullify Delete Rule
1) Create a new ManufacturingSchedule 2) saveChanges(). 3) Create a new ScheduledRouting, assign the new ManufacturingSchedule to it's manufacturingSchedule() relationship using: addObjectToBothSidesOfRelationshipWithKey(object, MANUFACTURING_SCHEDULE_KEY); 4) remove the ScheduledRouting from the ManufacturingSchedule using: removeObjectFromBothSidesOfRelationshipWithKey(object, SCHEDULED_ROUTINGS_KEY); 5) saveChanges()
This gives me the validation exception. Should it work, or is this actually the expected behavior?
If I add a saveChanges() between steps 3 and 4, then it saves both without any problem after the removal.
Dave
|
_______________________________________________
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