Doctrine\DBAL\Connection::close PHP Method

close() public method

Closes the connection.
public close ( ) : void
return void
    public function close()
    {
        $this->_conn = null;
        $this->_isConnected = false;
    }

Usage Example

コード例 #1
1
 public function shutdown()
 {
     if ($this->connection->isTransactionActive()) {
         $this->rollback();
     }
     $this->connection->close();
 }
All Usage Examples Of Doctrine\DBAL\Connection::close