Skip to content

Commit 6a38636

Browse files
committed
修正Raw对象赋值后二次保存重复执行的问题
1 parent 47804c4 commit 6a38636

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/model/concern/Attribute.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,10 @@ public function getChangedData(): array
374374
return 1;
375375
}
376376

377+
if ($b instanceof Raw) {
378+
return 0;
379+
}
380+
377381
return is_object($a) || $a != $b ? 1 : 0;
378382
});
379383

0 commit comments

Comments
 (0)