source/Application/Model/Order.php
protected function _checkOrderExist($sOxId = null)
    {
        if (!$sOxId) {
            return false;
        }

        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();
        if ($masterDb->getOne('select oxid from oxorder where oxid = ' . $masterDb->quote($sOxId))) {
            return true;
        }

        return false;
    }
protected function _checkOrderExist($sOxId = null)
    {
        if (!$sOxId) {
            return false;
        }

        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();
        if ($masterDb->getOne('select oxid from oxorder where oxid = ' . $masterDb->quote($sOxId))) {
            return true;
        }

        return false;
    }
protected function _checkOrderExist ( $ sOxId = null ) { if ( ! $ sOxId ) { return false ; } // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). $ masterDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( ) ; if ( $ masterDb -> getOne ( 'select oxid from oxorder where oxid = ' . $ masterDb -> quote ( $ sOxId ) ) ) { return true ; } return false ; }
Checking if this order is already stored.

@param string $sOxId order ID

@return bool
Checking if this order is already stored .