source/Core/Database/Adapter/Doctrine/Database.php
protected function ensureConnectionIsEstablished($connection)
    {
        if (!$this->isConnectionEstablished($connection)) {
            $message = $this->createConnectionErrorMessage($connection);

            throw new ConnectionException($message);
        }
    }
protected function ensureConnectionIsEstablished($connection)
    {
        if (!$this->isConnectionEstablished($connection)) {
            $message = $this->createConnectionErrorMessage($connection);

            throw new ConnectionException($message);
        }
    }
protected function ensureConnectionIsEstablished ( $ connection ) { if ( ! $ this -> isConnectionEstablished ( $ connection ) ) { $ message = $ this -> createConnectionErrorMessage ( $ connection ) ; throw new ConnectionException ( $ message ) ; } }
Ensure, that the given connection is established successful.

@param \Doctrine\DBAL\Connection $connection The connection we want to ensure, if it is established.

@throws \Exception If we are not connected correctly to the database.
Ensure that the given connection is established successful .