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

Question on addObjectToBothSidesOfRelationshipWithKey


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

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)



Thanks
James Cicenia

_______________________________________________
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: Chuck Hill <email@hidden>
  • Prev by Date: Re: Faxing from WO apps ?
  • Next by Date: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Previous by thread: Job Opportunity: Lead Architect / Director of IT
  • Next by thread: Re: Question on addObjectToBothSidesOfRelationshipWithKey
  • Index(es):
    • Date
    • Thread