mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-09 16:12:49 +08:00
修正Merge模型的save方法
This commit is contained in:
@@ -189,8 +189,12 @@ class Merge extends Model
|
|||||||
|
|
||||||
if (!empty($where)) {
|
if (!empty($where)) {
|
||||||
$pk = $this->getPk();
|
$pk = $this->getPk();
|
||||||
if (is_string($pk) && isset($data[$pk])) {
|
|
||||||
unset($data[$pk]);
|
if (isset($this->mapFields[$pk])) {
|
||||||
|
$pk = $this->mapFields[$pk];
|
||||||
|
}
|
||||||
|
if (isset($where[$pk])) {
|
||||||
|
unset($where[$pk]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user