src/EntityManager/RetryConnection/PingingAndReconnectingConnection.php
public function ping(): bool
    {
        parent::connect();

        if ($this->_conn instanceof Driver\PingableConnection) {
            return $this->_conn->ping();
        }

        try {
            parent::query($this->getDatabasePlatform()->getDummySelectSQL());

            return true;
        } catch (DBALException $e) {
            return false;
        }
    }
public function ping(): bool
    {
        parent::connect();

        if ($this->_conn instanceof Driver\PingableConnection) {
            return $this->_conn->ping();
        }

        try {
            parent::query($this->getDatabasePlatform()->getDummySelectSQL());

            return true;
        } catch (DBALException $e) {
            return false;
        }
    }
public function ping ( ) : bool { parent :: connect ( ) ; if ( $ this -> _conn instanceof Driver \ PingableConnection ) { return $ this -> _conn -> ping ( ) ; } try { parent :: query ( $ this -> getDatabasePlatform ( ) -> getDummySelectSQL ( ) ) ; return true ; } catch ( DBALException $ e ) { return false ; } }
Overriding the ping method so we explicitly call the raw unwrapped methods as required, otherwise we go into
infinite loop

@return bool
Overriding the ping method so we explicitly call the raw unwrapped methods as required otherwise we go into infinite loop