Skip to content

Commit 6917fbd

Browse files
author
Pantea Marius-ciclistu
committed
1 parent 7ac9d61 commit 6917fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

illuminate/Database/Eloquent/Concerns/HasAttributes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,8 +2121,8 @@ public function getDirty()
21212121
{
21222122
$dirty = [];
21232123

2124-
foreach ($this->attributes as $key => $value) {
2125-
if (!$this->originalIsEquivalent($key)) { // will cast
2124+
foreach ($this->getAttributes() as $key => $value) {
2125+
if (!$this->originalIsEquivalent($key)) {
21262126
$dirty[$key] = $value;
21272127
}
21282128
}

0 commit comments

Comments
 (0)