source/Application/Model/Order.php
public function getOrderUser()
    {
        if ($this->_oUser === null) {
            $this->_oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
            $this->_oUser->load($this->oxorder__oxuserid->value);

            // if object is loaded then reusing its order info
            if ($this->_isLoaded) {
                // bill address
                $this->_oUser->oxuser__oxcompany = clone $this->oxorder__oxbillcompany;
                $this->_oUser->oxuser__oxusername = clone $this->oxorder__oxbillemail;
                $this->_oUser->oxuser__oxfname = clone $this->oxorder__oxbillfname;
                $this->_oUser->oxuser__oxlname = clone $this->oxorder__oxbilllname;
                $this->_oUser->oxuser__oxstreet = clone $this->oxorder__oxbillstreet;
                $this->_oUser->oxuser__oxstreetnr = clone $this->oxorder__oxbillstreetnr;
                $this->_oUser->oxuser__oxaddinfo = clone $this->oxorder__oxbilladdinfo;
                $this->_oUser->oxuser__oxustid = clone $this->oxorder__oxbillustid;

                $this->_oUser->oxuser__oxcity = clone $this->oxorder__oxbillcity;
                $this->_oUser->oxuser__oxcountryid = clone $this->oxorder__oxbillcountryid;
                $this->_oUser->oxuser__oxstateid = clone $this->oxorder__oxbillstateid;
                $this->_oUser->oxuser__oxzip = clone $this->oxorder__oxbillzip;
                $this->_oUser->oxuser__oxfon = clone $this->oxorder__oxbillfon;
                $this->_oUser->oxuser__oxfax = clone $this->oxorder__oxbillfax;
                $this->_oUser->oxuser__oxsal = clone $this->oxorder__oxbillsal;
            }
        }

        return $this->_oUser;
    }
public function getOrderUser()
    {
        if ($this->_oUser === null) {
            $this->_oUser = oxNew(\OxidEsales\Eshop\Application\Model\User::class);
            $this->_oUser->load($this->oxorder__oxuserid->value);

            // if object is loaded then reusing its order info
            if ($this->_isLoaded) {
                // bill address
                $this->_oUser->oxuser__oxcompany = clone $this->oxorder__oxbillcompany;
                $this->_oUser->oxuser__oxusername = clone $this->oxorder__oxbillemail;
                $this->_oUser->oxuser__oxfname = clone $this->oxorder__oxbillfname;
                $this->_oUser->oxuser__oxlname = clone $this->oxorder__oxbilllname;
                $this->_oUser->oxuser__oxstreet = clone $this->oxorder__oxbillstreet;
                $this->_oUser->oxuser__oxstreetnr = clone $this->oxorder__oxbillstreetnr;
                $this->_oUser->oxuser__oxaddinfo = clone $this->oxorder__oxbilladdinfo;
                $this->_oUser->oxuser__oxustid = clone $this->oxorder__oxbillustid;

                $this->_oUser->oxuser__oxcity = clone $this->oxorder__oxbillcity;
                $this->_oUser->oxuser__oxcountryid = clone $this->oxorder__oxbillcountryid;
                $this->_oUser->oxuser__oxstateid = clone $this->oxorder__oxbillstateid;
                $this->_oUser->oxuser__oxzip = clone $this->oxorder__oxbillzip;
                $this->_oUser->oxuser__oxfon = clone $this->oxorder__oxbillfon;
                $this->_oUser->oxuser__oxfax = clone $this->oxorder__oxbillfax;
                $this->_oUser->oxuser__oxsal = clone $this->oxorder__oxbillsal;
            }
        }

        return $this->_oUser;
    }
public function getOrderUser ( ) { if ( $ this -> _oUser === null ) { $ this -> _oUser = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ User :: class ) ; $ this -> _oUser -> load ( $ this -> oxorder__oxuserid -> value ) ; // if object is loaded then reusing its order info if ( $ this -> _isLoaded ) { // bill address $ this -> _oUser -> oxuser__oxcompany = clone $ this -> oxorder__oxbillcompany ; $ this -> _oUser -> oxuser__oxusername = clone $ this -> oxorder__oxbillemail ; $ this -> _oUser -> oxuser__oxfname = clone $ this -> oxorder__oxbillfname ; $ this -> _oUser -> oxuser__oxlname = clone $ this -> oxorder__oxbilllname ; $ this -> _oUser -> oxuser__oxstreet = clone $ this -> oxorder__oxbillstreet ; $ this -> _oUser -> oxuser__oxstreetnr = clone $ this -> oxorder__oxbillstreetnr ; $ this -> _oUser -> oxuser__oxaddinfo = clone $ this -> oxorder__oxbilladdinfo ; $ this -> _oUser -> oxuser__oxustid = clone $ this -> oxorder__oxbillustid ; $ this -> _oUser -> oxuser__oxcity = clone $ this -> oxorder__oxbillcity ; $ this -> _oUser -> oxuser__oxcountryid = clone $ this -> oxorder__oxbillcountryid ; $ this -> _oUser -> oxuser__oxstateid = clone $ this -> oxorder__oxbillstateid ; $ this -> _oUser -> oxuser__oxzip = clone $ this -> oxorder__oxbillzip ; $ this -> _oUser -> oxuser__oxfon = clone $ this -> oxorder__oxbillfon ; $ this -> _oUser -> oxuser__oxfax = clone $ this -> oxorder__oxbillfax ; $ this -> _oUser -> oxuser__oxsal = clone $ this -> oxorder__oxbillsal ; } } return $ this -> _oUser ; }
Returns current order user object

@return \OxidEsales\Eshop\Application\Model\User
Returns current order user object