• 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 question ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many-to-many question ...


  • Subject: Many-to-many question ...
  • From: "Shagor Ghani" <email@hidden>
  • Date: Wed, 24 Oct 2007 18:17:53 -0700

WOMasters,

Have a quick question around join tables storing M2M relationships.  I need to store a M2M relationship and created a table for it using Property>Join in Many-to-Many option from within EOModeler itself.  This table has two columns, id1 and id2, both of which are primary and which together produce a unique record.  In my code, I've been doing creating new rows into this table using the standard object.addObjectToBothSidesOfRelationshipWithKey( object, key ) call.  Now, though, I also need to store additional values within this record, for example a boolean bit indicating whether the record is active or not.  How is this done?  If I manually add a 3rd attribute column, what call is then used to update/create new  record(s)?

Many thanks for your response,
email@hidden


 _______________________________________________
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: Many-to-many question ...
      • From: Lachlan Deck <email@hidden>
  • Prev by Date: Re: Fetching data into an Array
  • Next by Date: Re: Why won't this work!?
  • Previous by thread: Re: Fetching data into an Array
  • Next by thread: Re: Many-to-many question ...
  • Index(es):
    • Date
    • Thread