This commit is contained in:
xl
2023-05-25 16:59:18 +08:00
parent ac443a49b1
commit efa6cf5421
3 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -492,7 +492,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, T
*/
private function diff(): array
{
$changes = array_diff_assoc($this->_oldAttributes, $this->_attributes);
$changes = array_diff_assoc($this->_attributes, $this->_oldAttributes);
$condition = array_intersect_assoc($this->_oldAttributes, $this->_attributes);