Skip to content

Commit

Permalink
Clear mutateCache on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
kchung committed Sep 23, 2024
1 parent 7d53268 commit 3feb2d2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Database/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,16 @@ public function belongsToMany($related, $table = null, $foreignPivotKey = null,
);
}

/**
* {@inheritdoc}
*/
public function refresh()
{
$this->mutatedCache = [];

return parent::refresh();
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 3feb2d2

Please sign in to comment.