updating related tables in cake
问题 I have this: $this->request->data['Person']['person_id'] = $this->Session->read('insertedPersonID'); $savedPerson = $this->Person->saveAll($this->request->data, array('validate'=>'first')); which updates the selected person row fine however its related tables like PersonColor and PersonParts are not updating, instead inserting new rows. I thought cake automatically updates the related tables as well as long as the id of the main table which is the foreign key for the other two tables are