Skip to content

Commit 4a9027a

Browse files
[8.x] Close doctrineConnection on disconnect (#41584)
* Close doctrineConnection on disconnect * Update Connection.php Co-authored-by: Taylor Otwell <[email protected]>
1 parent 888947c commit 4a9027a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Database/Connection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,8 @@ protected function reconnectIfMissingConnection()
825825
public function disconnect()
826826
{
827827
$this->setPdo(null)->setReadPdo(null);
828+
829+
$this->doctrineConnection = null;
828830
}
829831

830832
/**

0 commit comments

Comments
 (0)