Doctrine\DBAL\Connection::getWrappedConnection PHP Method

getWrappedConnection() public method

Gets the wrapped driver connection.
public getWrappedConnection ( ) : Doctrine\DBAL\Driver\Connection
return Doctrine\DBAL\Driver\Connection
    public function getWrappedConnection()
    {
        $this->connect();
        return $this->_conn;
    }

Usage Example

コード例 #1
0
 /**
  * @return PHPUnit_Extensions_Database_DB_IDatabaseConnection
  */
 protected final function getConnection()
 {
     if (!$this->connection) {
         if (!self::$doctrine) {
             self::$doctrine = $this->getDoctrineConnection();
             $this->setupDatabase();
         }
         $this->connection = $this->createDefaultDbConnection(self::$doctrine->getWrappedConnection(), ':memory:');
     }
     return $this->connection;
 }
All Usage Examples Of Doctrine\DBAL\Connection::getWrappedConnection