This commit is contained in:
2021-02-24 19:08:42 +08:00
parent 4dddb833bb
commit b73f6b4f85
3 changed files with 1 additions and 24 deletions
-1
View File
@@ -152,7 +152,6 @@ 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) {