source/Application/Controller/Admin/ArticleVariant.php
protected function _getProductParent($sParentId)
    {
        if ($this->_oProductParent === null ||
            ($this->_oProductParent !== false && $this->_oProductParent->getId() != $sParentId)
        ) {
            $this->_oProductParent = false;
            $oProduct = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if ($oProduct->load($sParentId)) {
                $this->_oProductParent = $oProduct;
            }
        }

        return $this->_oProductParent;
    }
protected function _getProductParent($sParentId)
    {
        if ($this->_oProductParent === null ||
            ($this->_oProductParent !== false && $this->_oProductParent->getId() != $sParentId)
        ) {
            $this->_oProductParent = false;
            $oProduct = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if ($oProduct->load($sParentId)) {
                $this->_oProductParent = $oProduct;
            }
        }

        return $this->_oProductParent;
    }
protected function _getProductParent ( $ sParentId ) { if ( $ this -> _oProductParent === null || ( $ this -> _oProductParent !== false && $ this -> _oProductParent -> getId ( ) != $ sParentId ) ) { $ this -> _oProductParent = false ; $ oProduct = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; if ( $ oProduct -> load ( $ sParentId ) ) { $ this -> _oProductParent = $ oProduct ; } } return $ this -> _oProductParent ; }
Returns variant parent object

@param string $sParentId parent product id

@return \OxidEsales\Eshop\Application\Model\Article
Returns variant parent object