|
|
@ -889,6 +889,7 @@ class ActiveRecord extends Model |
|
|
|
} |
|
|
|
} |
|
|
|
$values = $this->getDirtyAttributes($attributes); |
|
|
|
$values = $this->getDirtyAttributes($attributes); |
|
|
|
if (empty($values)) { |
|
|
|
if (empty($values)) { |
|
|
|
|
|
|
|
$this->afterSave(false); |
|
|
|
return 0; |
|
|
|
return 0; |
|
|
|
} |
|
|
|
} |
|
|
|
$condition = $this->getOldPrimaryKey(true); |
|
|
|
$condition = $this->getOldPrimaryKey(true); |
|
|
|