• 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
Many to Many relationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many to Many relationship


  • Subject: Many to Many relationship
  • From: "Paul Mathews" <email@hidden>
  • Date: Thu, 27 Jan 2005 00:35:43 +1000

Hi all

I was wondering about the use of "addObjectToBothSidesOfRelationshipWithKey" in a many-to-many relationship.

I want to use this call (so easy) but I also want to capture when this relationship is created/set, and maybe when it has been
modified (set a second time maybe). So I thought ok we add these fields to the "join" table, but how to access them? Using
addObjectToBothSidesOfRelationshipWithKey does not return or seem to set (although it must) an object that I can use to set
this type (setrelationship_DATETIME) of attribute?

Any suggestions?

Eg:  Reader reads many Documents and a Document is read by many Readers. The question is when are the documents
being read?

Reader << Reader_Document >> Document

I did this manually is one case, and that works fine, I grab the Reader_ID and the Document_ID, Create a separate
Reader_Document object, and fill in the other attributes that I need, including the datetime when the link is created.

I just thought there would be a more elegant way


thanks

Paul Mathews
 _______________________________________________
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

  • Prev by Date: Re: templates/html generating
  • Next by Date: Re: XCode v Eclipse problem with WO WebServices development
  • Previous by thread: Re: "Smart" Bindings?
  • Next by thread: Many to Many self join
  • Index(es):
    • Date
    • Thread