This commit is contained in:
xl
2023-05-25 17:00:58 +08:00
parent efa6cf5421
commit 49742a08ad
+2 -2
View File
@@ -492,9 +492,9 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/ */
private function diff(): array private function diff(): array
{ {
$changes = array_diff_assoc($this->_attributes, $this->_oldAttributes); $changes = \array_diff_assoc($this->_attributes, $this->_oldAttributes);
$condition = array_intersect_assoc($this->_oldAttributes, $this->_attributes); $condition = \array_intersect_assoc($this->_oldAttributes, $this->_attributes);
return [$changes, $condition]; return [$changes, $condition];
} }