This commit is contained in:
2021-02-24 19:05:58 +08:00
parent ceefff70b7
commit 158a04cf44
+1
View File
@@ -152,6 +152,7 @@ class ActiveRecord extends BaseActiveRecord
if (empty($condition)) {
$condition = [$this->getPrimary() => $this->getPrimaryValue()];
}
$condition = static::find()->where($condition)->getCondition();
$execute = static::getDb()->createCommand()
->mathematics(self::getTable(), [$action => $columns], $condition);
if ($execute instanceof Command) {