Doctrine\DBAL\Connection::close PHP Méthode

close() public méthode

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

Usage Example

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