diff --git a/Database/Base/BaseActiveRecord.php b/Database/Base/BaseActiveRecord.php index 01d1a349..6c43c814 100644 --- a/Database/Base/BaseActiveRecord.php +++ b/Database/Base/BaseActiveRecord.php @@ -511,6 +511,9 @@ abstract class BaseActiveRecord extends Component implements IOrm, ArrayAccess */ private function updateInternal($fields, $condition, $param): bool|static { + if (empty($param)) { + return true; + } if ($this->hasPrimary()) { $condition = [$this->getPrimary() => $this->getPrimaryValue()]; }