public function getDoctrineConnection()
    {
        if (is_null($this->doctrineConnection)) {
            $data                     = ['pdo' => $this->getPdo(), 'user' => $this->getConfig('username')];
            $this->doctrineConnection = new DoctrineConnection(
                $data,
                $this->getDoctrineDriver()
            );
        }

        return $this->doctrineConnection;
    }
public function getDoctrineConnection()
    {
        if (is_null($this->doctrineConnection)) {
            $data                     = ['pdo' => $this->getPdo(), 'user' => $this->getConfig('username')];
            $this->doctrineConnection = new DoctrineConnection(
                $data,
                $this->getDoctrineDriver()
            );
        }

        return $this->doctrineConnection;
    }
public function getDoctrineConnection ( ) { if ( is_null ( $ this -> doctrineConnection ) ) { $ data = [ 'pdo' => $ this -> getPdo ( ) , 'user' => $ this -> getConfig ( 'username' ) ] ; $ this -> doctrineConnection = new DoctrineConnection ( $ data , $ this -> getDoctrineDriver ( ) ) ; } return $ this -> doctrineConnection ; }
Get doctrine connection.

@return \Doctrine\DBAL\Connection
Get doctrine connection .