我有一张主桌,客户。此表与另外 20 个表相关联。我正在尝试使用以下代码仅更新表 Clientee:
$this->Cliente->updateAll(array("ec_cnpj" => $this->request->data['Cliente']['ec_cnpj'],
"ec_cpf" => $this->request->data['Cliente']['ec_cpf'],
"ec_rg" => $this->request->data['Cliente']['ec_rg'],
"ec_rg_org_emissor" => $this->request->data['Cliente']['ec_rg'],
"ec_rg_est_emissor" => $this->request->data['Cliente']['ec_rg_est_emissor'],
"ec_nire" => $this->request->data['Cliente']['ec_nire']),
array("ec_codigo"=>$this->request->data['ec_codigo']))
但是,Cake 正在生成一个查询来更新所有表。如何仅更新客户表?