• 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: Owns Destination problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 

On Aug 19, 2008, at 2:06 PM, Chuck Hill wrote:

It might be some variation of this:
http://lists.apple.com/archives/webobjects-dev/2008/Aug/msg00079.html

 _______________________________________________
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: Owns Destination problem
      • From: Florijan Stamenkovic <email@hidden>
    • Re: Owns Destination problem
      • From: Chuck Hill <email@hidden>
References: 
 >Owns Destination problem (From: David Avendasora <email@hidden>)
 >Re: Owns Destination problem (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Back Track too far on first click of a link
  • Next by Date: Re: Back Track too far on first click of a link
  • Previous by thread: Re: Owns Destination problem
  • Next by thread: Re: Owns Destination problem
  • Index(es):
    • Date
    • Thread