On May 9, 2012, at 8:58 AM, Charles Brunet wrote:

> Do you have any suggestions on a better way of doing it?

        I'm swamped right now, so I can't dig deeply into the code, but 
remember the only difference between a 1:M and a M:M is that you can approach 
the M:M relationship from both directions. Since you are just importing, it 
might make more sense to run the import in two "passes": first, go through the 
data and create all the Label records. Then go through again, and create a 1:M 
relation between Contact and ContactLabel. As you add Contacts, find all the 
matching labels and create the necessary ContactLabel records, and then save 
the Contact bizobj.
        

-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to