private function getConnection() {
        if ($this->connection === null) {
            $this->connection = DriverManager::getConnection($this->params, new Configuration());
        }

        return $this->connection;
    }
private function getConnection() {
        if ($this->connection === null) {
            $this->connection = DriverManager::getConnection($this->params, new Configuration());
        }

        return $this->connection;
    }
private function getConnection ( ) { if ( $ this -> connection === null ) { $ this -> connection = DriverManager :: getConnection ( $ this -> params , new Configuration ( ) ) ; } return $ this -> connection ; }
Get the Doctrine connection

@return Connection
Get the Doctrine connection