src/Transaction/MultiExec.php
protected function executeTransactionBlock($callable)
    {
        $exception = null;
        $this->state->flag(MultiExecState::INSIDEBLOCK);

        try {
            call_user_func($callable, $this);
        } catch (CommunicationException $exception) {
            // NOOP
        } catch (ServerException $exception) {
            // NOOP
        } catch (\Exception $exception) {
            $this->discard();
        }

        $this->state->unflag(MultiExecState::INSIDEBLOCK);

        if ($exception) {
            throw $exception;
        }
    }
protected function executeTransactionBlock($callable)
    {
        $exception = null;
        $this->state->flag(MultiExecState::INSIDEBLOCK);

        try {
            call_user_func($callable, $this);
        } catch (CommunicationException $exception) {
            // NOOP
        } catch (ServerException $exception) {
            // NOOP
        } catch (\Exception $exception) {
            $this->discard();
        }

        $this->state->unflag(MultiExecState::INSIDEBLOCK);

        if ($exception) {
            throw $exception;
        }
    }
protected function executeTransactionBlock ( $ callable ) { $ exception = null ; $ this -> state -> flag ( MultiExecState :: INSIDEBLOCK ) ; try { call_user_func ( $ callable , $ this ) ; } catch ( CommunicationException $ exception ) { // NOOP } catch ( ServerException $ exception ) { // NOOP } catch ( \ Exception $ exception ) { $ this -> discard ( ) ; } $ this -> state -> unflag ( MultiExecState :: INSIDEBLOCK ) ; if ( $ exception ) { throw $ exception ; } }
Passes the current transaction object to a callable block for execution.

@param mixed $callable Callback.

@throws CommunicationException
@throws ServerException
Passes the current transaction object to a callable block for execution .