This commit is contained in:
as2252258@163.com
2021-03-04 23:53:41 +08:00
parent 2936a75512
commit df0ead6364
+1 -1
View File
@@ -52,7 +52,7 @@ class ActiveRecord extends BaseActiveRecord
*/
public function increment(string $column, int $value): bool|ActiveRecord
{
if (!$this->mathematics([$column => $value], '-')) {
if (!$this->mathematics([$column => $value], '+')) {
return false;
}
$this->{$column} += $value;