Skip to content

Commit

Permalink
[8.x] Close doctrineConnection on disconnect (#41584)
Browse files Browse the repository at this point in the history
* Close doctrineConnection on disconnect

* Update Connection.php

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
lcharette and taylorotwell committed Mar 21, 2022
1 parent 888947c commit 4a9027a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Illuminate/Database/Connection.php
Expand Up @@ -825,6 +825,8 @@ protected function reconnectIfMissingConnection()
public function disconnect()
{
$this->setPdo(null)->setReadPdo(null);

$this->doctrineConnection = null;
}

/**
Expand Down

0 comments on commit 4a9027a

Please sign in to comment.