I have a database where information that should really have been a proper one-to-many relation is stored in a string. I would like to create a model that looks like a proper one-to-many relation and hides the ugly implementation details.
Assuming I have a table with two columns: [UserID] and [Contacts], where Contacts is a string that contains multiple contacts encoded as a single string. Each contact has a name and a phone number. (E.g. the contacts string may look something like "John:555-000-9998;Tony: 333-222-1111;Mia:444-333-1122"). I would like to create a User model that has a one-to-many relation to a Contact model, which has Name and Phone fields. What methods do I need define/override to accomplish this? Many thanks for your help, Magnus -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
