diff --git a/Connection.php b/Connection.php index 9a7de4b..b45a13a 100644 --- a/Connection.php +++ b/Connection.php @@ -149,6 +149,9 @@ class Connection extends Component */ public function getMasterClient(): PDO { + if ($this->_pdo) { + return $this->_pdo; + } return $this->connections()->get([ 'cds' => $this->cds, 'username' => $this->username,