This commit is contained in:
xl
2023-05-25 16:38:12 +08:00
parent c57e606e55
commit ac443a49b1
+1 -1
View File
@@ -494,7 +494,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
{
$changes = array_diff_assoc($this->_oldAttributes, $this->_attributes);
$condition = array_intersect_key($this->_oldAttributes, $this->_attributes);
$condition = array_intersect_assoc($this->_oldAttributes, $this->_attributes);
return [$changes, $condition];
}