• 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: Relationship Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Relationship Question


  • Subject: Re: Relationship Question
  • From: Anjo Krank <email@hidden>
  • Date: Tue, 4 Jan 2005 08:14:26 +0100


Am 04.01.2005 um 00:44 schrieb Greg:

have an entity called ProPriceSchedule that has a to-many relationship to ProPrice. ProPriceSchedule owns the destination of the relationship. When I try to delete the a price object by removeObjectFromBothSidesOfRelationshipWithKey, an exception is thrown and the description is "A <b>Pro Price</b> must have a <b>Price Schedule</b>" I know that this is correct as the relationship is mandatory in the ProPrice entity.

AFAIK, "owns destination" is only for to-ones, and you don't "removeObjectFromtBothSides" the old object, but simply "addObjectToBothSides" the new one. You need to delete the old ProPrice object in addition to removing it.


Cheers, Anjo

_______________________________________________
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


References: 
 >Relationship Question (From: Greg <email@hidden>)
 >Re: Relationship Question (From: Chuck Hill <email@hidden>)
 >Re: Relationship Question (From: Greg <email@hidden>)

  • Prev by Date: Re: Relationship Question
  • Next by Date: From Oracle to MySql - Part II
  • Previous by thread: Re: Relationship Question
  • Next by thread: No example running in 2005
  • Index(es):
    • Date
    • Thread