Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Many-to-many question ...



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:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.