改名
This commit is contained in:
@@ -152,6 +152,7 @@ class ActiveRecord extends BaseActiveRecord
|
|||||||
if (empty($condition)) {
|
if (empty($condition)) {
|
||||||
$condition = [$this->getPrimary() => $this->getPrimaryValue()];
|
$condition = [$this->getPrimary() => $this->getPrimaryValue()];
|
||||||
}
|
}
|
||||||
|
$condition = static::find()->where($condition)->getCondition();
|
||||||
$execute = static::getDb()->createCommand()
|
$execute = static::getDb()->createCommand()
|
||||||
->mathematics(self::getTable(), [$action => $columns], $condition);
|
->mathematics(self::getTable(), [$action => $columns], $condition);
|
||||||
if ($execute instanceof Command) {
|
if ($execute instanceof Command) {
|
||||||
|
|||||||
Reference in New Issue
Block a user