CakePHP: Creating new HABTM row instead updates other
问题 I have two models with a HABTM (Has and belongs to many) relationship: Qsets and Questions. The following action (in QsetsController.php) should result in a new row in the qsets_questions table, with the new question appearing in the new qset. But instead it updates existing rows, resulting in that question begin taken from a previous qset and added to the new one. What am I doing wrong? public function admin_add_question( $qset_id, $question_id) { //find the qset... $qset = $this->Qset->find