You shouldn't have to create a model nor controller for the HABTM
table.

I think that if your Games Model has the relations correctly
specified, should be enough to include genre_id to the array which you
are sending to save method, something like this:

$data = array
(
    'Game' => array
        (
            'fieldname1' => 'value'
            'fieldname2' => 'value'
            'genre_id' => 5 /* or what ever the genre id is */
        )
);
$this->Game->save($data); // This should do
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to