source/Application/Model/OrderArticle.php
public function getOrder()
    {
        if ($this->oxorderarticles__oxorderid->value) {
            // checking if the object already exists in the cache
            if (isset($this->_aOrderCache[$this->oxorderarticles__oxorderid->value])) {
                // returning the cached object
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value];
            }
            // creatina new order object and trying to load it
            $oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            if ($oOrder->load($this->oxorderarticles__oxorderid->value)) {
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value] = $oOrder;
            }
        }

        return null;
    }
public function getOrder()
    {
        if ($this->oxorderarticles__oxorderid->value) {
            // checking if the object already exists in the cache
            if (isset($this->_aOrderCache[$this->oxorderarticles__oxorderid->value])) {
                // returning the cached object
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value];
            }
            // creatina new order object and trying to load it
            $oOrder = oxNew(\OxidEsales\Eshop\Application\Model\Order::class);
            if ($oOrder->load($this->oxorderarticles__oxorderid->value)) {
                return $this->_aOrderCache[$this->oxorderarticles__oxorderid->value] = $oOrder;
            }
        }

        return null;
    }
public function getOrder ( ) { if ( $ this -> oxorderarticles__oxorderid -> value ) { // checking if the object already exists in the cache if ( isset ( $ this -> _aOrderCache [ $ this -> oxorderarticles__oxorderid -> value ] ) ) { // returning the cached object return $ this -> _aOrderCache [ $ this -> oxorderarticles__oxorderid -> value ] ; } // creatina new order object and trying to load it $ oOrder = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Order :: class ) ; if ( $ oOrder -> load ( $ this -> oxorderarticles__oxorderid -> value ) ) { return $ this -> _aOrderCache [ $ this -> oxorderarticles__oxorderid -> value ] = $ oOrder ; } } return null ; }
Returns oxOrder object that the article belongs to

@return mixed - on success returns oxOrder object, else returns null
Returns oxOrder object that the article belongs to