Doctrine\DBAL\Migrations\Configuration\Configuration::connect PHP Method

connect() protected method

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.
protected connect ( ) : boolean
return boolean The same value returned from the `connect` method
    protected function connect()
    {
        if ($this->connection instanceof MasterSlaveConnection) {
            return $this->connection->connect('master');
        }
        return $this->connection->connect();
    }