Skip to content

Commit

Permalink
修正Raw对象赋值后二次保存重复执行的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Jan 13, 2025
1 parent 47804c4 commit 6a38636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/concern/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ public function getChangedData(): array
return 1;
}

if ($b instanceof Raw) {
return 0;
}

return is_object($a) || $a != $b ? 1 : 0;
});

Expand Down

0 comments on commit 6a38636

Please sign in to comment.