On Nov 2, 2006, at 11:20 AM, [EMAIL PROTECTED] wrote:

>
> I am trying to make a DVD catalog with Cake.  Right now i have a few
> tables, dvds, genres, and ratings.  I already have setup the
> scaffolding so that I can select a rating (G, PG, PG-13, R) from a  
> drop
> down list when I add a new DVD.  I want to do something very similar
> for the genres, but I want to be able to select multiple genres for
> each DVD.  Any suggestions?

Set up a hasAndBelongsToMany (HABTM) between DVDs and genres.

There should be some examples in the manual models chapter of how to  
accomplish this.

-- John



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to