Doctrine\DBAL\Connection::close PHP 메소드

close() 공개 메소드

Closes the connection.
public close ( ) : void
리턴 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