Hi Tazz As you suggested in your previous post, using HasAndBelongsToMany is the logical solution here.
I did a similar thing for a computer magazine that I built a site for. Each dealer sells one or more of the standard product types that the magazine lists. In the Dealer edit page I just presented a list of all of the product types with a check box beside each. The administrator of the system just clicks the check boxes to select as many product types (or in your case music styles) as required. Cake then saves the association for me when the model is saved. I don't believe that I had to do anything fancy to the data in the controller, but it has been a while and I don't remember exactly. Regards, Langdon > Each release may have multiple styles of music. > > I wan' t to create the following columns on my release table: Style1, > Style2, Style3 > > And then create the proper associations. > > Do you guys recommend another way? Although I prefer the above to make > the data entry easier. > > Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
