cakephp 2 save addtional values in linking table code example
Example: update all cakephp
$update = $this->updateAll(
array(value need to update),
array(conditions)
);
Ex:
$update = $this->updateAll(
array(
'MemberLoginMethod.token' => NULL,
),
array(
'MemberLoginMethod.member_id' => $member_id
)
);
$this->MembersPush->updateAll(array(
'MembersPush.pushed' => "\"" . $date . "\"",
), array(
'MembersPush.device_token' => $device,
'MembersPush.push_history_id' => $push_history_id,
'MembersPush.type' => $type,
));