For deleting, you can use the model function deleteAll to remove
directly from the join table, as long as you know both IDs. Example
(if you haven't specified a different join model name):

$this->Question->GamesQuestion->deleteAll(array('question_id' =>
$q_id, 'game_id' => $g_id), false);

Where $q_id is the Question ID and the $g_id is the Game ID.
--~--~---------~--~----~------------~-------~--~----~
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