We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda8634 commit d279a1eCopy full SHA for d279a1e
illuminate/Database/Eloquent/Model.php
@@ -1224,7 +1224,10 @@ public function saveOrFail(array $options = [])
1224
*/
1225
protected function finishSave(array $options)
1226
{
1227
- if ($this->getEventDispatcher()->hasListeners($this::class . '.saved')) {
+ if (
1228
+ isset($this->tmpDirtyIfAttributesAreSyncedFromCashedCasts)
1229
+ && $this->getEventDispatcher()->hasListeners($this::class . '.saved')
1230
+ ) {
1231
$this->tmpDirtyIfAttributesAreSyncedFromCashedCasts = null;
1232
}
1233
0 commit comments