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

Re: Question on addObjectToBothSidesOfRelationshipWithKey


  • Subject: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • From: James Cicenia <email@hidden>
  • Date: Tue, 24 Jul 2007 14:57:34 -0500

I checked the model "carefully"...

the relationship from pn -- ndt is such where ndt uses vertical inheritance so has a qualifier in it. Though that should still be transparent..

or should I have reversed it where I do:

ndt.addObjectToBothSidesOfRelationshipWithKey(pn ,"documentsTab");

this is the first time I have used addObject... with cross referencing to-one relationships

everything else looks fine.



On Jul 24, 2007, at 2:47 PM, Chuck Hill wrote:


On Jul 24, 2007, at 12:40 PM, James Cicenia wrote:

I am doing something like this:

PortfolioNotifications pn = (PortfolioNotifications) EOUtilities.createAndInsertInstance(ec, "PortfolioNotifications");
this.addObjectToBothSidesOfRelationshipWithKey(pn,"notification");

NotificationDocumentsTab ndt = (NotificationDocumentsTab) EOUtilities.createAndInsertInstance(ec,"NotificationDocumentsTab");
this.notification().addObjectToBothSidesOfRelationshipWithKey (ndt ,"documentsTab");


ec.saveChanges();


However the reverse relationship from ndt to pn doesn't get filled. Is this because pn wasn't committed yet?


portfolio -- pn -- ndt (they are all one-one relationships)

I'd check the model carefully. Is there some reason that EOF can see the reverse relationships or might not see that they match the forward ones?


Chuck

--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ 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: Question on addObjectToBothSidesOfRelationshipWithKey
      • From: Lachlan Deck <email@hidden>
    • Re: Question on addObjectToBothSidesOfRelationshipWithKey
      • From: Chuck Hill <email@hidden>
References: 
 >Question on addObjectToBothSidesOfRelationshipWithKey (From: James Cicenia <email@hidden>)
 >Re: Question on addObjectToBothSidesOfRelationshipWithKey (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Next by Date: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Previous by thread: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Next by thread: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Index(es):
    • Date
    • Thread