diff --git a/Base/Model.php b/Base/Model.php index 025b468..82650c8 100644 --- a/Base/Model.php +++ b/Base/Model.php @@ -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]; }