Skip to content

Commit fff512b

Browse files
committed
fix: Fix dirty cleaning after fetch
1 parent 90f8508 commit fff512b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/User.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ public function fetch(): bool
137137
foreach ($user->attributes ?? [] as $attribute => $value) {
138138
$this->attributes->$attribute = $value;
139139
}
140+
$this->attributes->clearDirty();
140141

141142
$groups = $user->relationships['groups'] ?? [];
142143

@@ -149,6 +150,7 @@ public function fetch(): bool
149150
foreach ($groups as $group) {
150151
$this->relationships->groups[] = $group->attributes['nameSingular'];
151152
}
153+
$this->relationships->clearDirty();
152154

153155
return true;
154156
}

0 commit comments

Comments
 (0)