src/Database/Db.php
public function getPdo($name)
    {
        if (!isset($this->connections[$name])) {
            $name   = $this->defaultPdoName;
        }

        if (isset($this->pdoArray[$name])) {
            return $this->pdoArray[$name];
        }

        $pdo                    = $this->createPdo($this->connections[$name]);
        $this->pdoArray[$name]  = $this->initOptions($pdo);
        return $this->pdoArray[$name];
    }
public function getPdo($name)
    {
        if (!isset($this->connections[$name])) {
            $name   = $this->defaultPdoName;
        }

        if (isset($this->pdoArray[$name])) {
            return $this->pdoArray[$name];
        }

        $pdo                    = $this->createPdo($this->connections[$name]);
        $this->pdoArray[$name]  = $this->initOptions($pdo);
        return $this->pdoArray[$name];
    }
public function getPdo ( $ name ) { if ( ! isset ( $ this -> connections [ $ name ] ) ) { $ name = $ this -> defaultPdoName ; } if ( isset ( $ this -> pdoArray [ $ name ] ) ) { return $ this -> pdoArray [ $ name ] ; } $ pdo = $ this -> createPdo ( $ this -> connections [ $ name ] ) ; $ this -> pdoArray [ $ name ] = $ this -> initOptions ( $ pdo ) ; return $ this -> pdoArray [ $ name ] ; }
get pdo connection by name

@param string $name
@return PDO
@throws DbException
get pdo connection by name