Skip to content

Commit a1f2197

Browse files
author
Pantea Marius-ciclistu
committed
POC for laravel/framework#31778 revert backport laravel pull/47450 because isDirty will sync/merge the cast cached objects
1 parent cf56959 commit a1f2197

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

illuminate/Database/Eloquent/Model.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -988,10 +988,6 @@ protected function incrementOrDecrement($column, $amount, $extra, $method)
988988
return 0;
989989
}
990990

991-
if ($this->isClassDeviable($column)) {
992-
$amount = (clone $this)->setAttribute($column, $amount)->getAttributeFromArray($column);
993-
}
994-
995991
return tap(
996992
$this->setKeysForSaveQuery($this->newQueryWithoutScopes())->{$method}($column, $amount, $extra),
997993
function () use ($column) {

0 commit comments

Comments
 (0)