public function connect() : bool
    {
        if ($this->connection instanceof MasterSlaveConnection) {
            return $this->connection->connect('master');
        }

        return $this->connection->connect();
    }
public function connect() : bool
    {
        if ($this->connection instanceof MasterSlaveConnection) {
            return $this->connection->connect('master');
        }

        return $this->connection->connect();
    }
public function connect ( ) : bool { if ( $ this -> connection instanceof MasterSlaveConnection ) { return $ this -> connection -> connect ( 'master' ) ; } return $ this -> connection -> connect ( ) ; }
Explicitely opens the database connection. This is done to play nice
with DBAL's MasterSlaveConnection. Which, in some cases, connects to a
follower when fetching the executed migrations. If a follower is lagging
significantly behind that means the migrations system may see unexecuted
migrations that were actually executed earlier.
Explicitely opens the database connection . This is done to play nice with DBAL s MasterSlaveConnection . Which in some cases connects to a follower when fetching the executed migrations . If a follower is lagging significantly behind that means the migrations system may see unexecuted migrations that were actually executed earlier .