This commit is contained in:
2024-01-10 17:48:54 +08:00
parent d036e440cd
commit a439c616b4
+3
View File
@@ -503,6 +503,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
$oldPrams[$key] = $this->_oldAttributes[$key];
}
}
if ($this->hasPrimary()) {
$condition = [$this->getPrimary() => $this->getPrimaryValue()];
}
return [$oldPrams, $condition, $params];
}