diff --git a/src/Base/Model.php b/src/Base/Model.php index e10ff76..92e70fc 100644 --- a/src/Base/Model.php +++ b/src/Base/Model.php @@ -614,7 +614,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T return false; } [$change, $condition, $fields] = $this->separation(); - if (!$this->isNewExample) { + if (!empty($this->_oldAttributes) || !empty($this->getPrimaryValue())) { return $this->updateInternal($fields, $condition, $change); } return $this->insert($change, $fields);