Skip to content

Commit bb69654

Browse files
authored
[12.x] Prevent relation autoload context from being serialized (#55582)
1 parent fef0498 commit bb69654

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Illuminate/Database/Eloquent/Model.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,7 @@ public function __sleep()
25022502
$this->classCastCache = [];
25032503
$this->attributeCastCache = [];
25042504
$this->relationAutoloadCallback = null;
2505+
$this->relationAutoloadContext = null;
25052506

25062507
return array_keys(get_object_vars($this));
25072508
}

0 commit comments

Comments
 (0)