protected function resetSharedConn()
 {
     if (self::$_sharedConn) {
         self::$_sharedConn->close();
         self::$_sharedConn = null;
     }
 }
 protected function resetSharedConn()
 {
     if ($this->sharedFixture['conn']) {
         $this->sharedFixture['conn']->close();
         $this->sharedFixture['conn'] = null;
     }
     if (self::$_sharedConn) {
         self::$_sharedConn->close();
         self::$_sharedConn = null;
     }
 }
 /**
  * @author "Lionel Lecaque, <*****@*****.**>"
  * @param string $name
  */
 public function setDatabase($name)
 {
     $this->connection->close();
     common_Logger::d('Switch to database ' . $name, 'INSTALL');
     $this->dbConfiguration['dbname'] = $name;
     $this->connection = $this->buildDbalConnection($this->dbConfiguration);
 }