source/Application/Controller/ArticleDetailsController.php
protected function _getParentProduct($parentId)
    {
        if ($parentId && $this->_oParentProd === null) {
            $this->_oParentProd = false;
            $article = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if (($article->load($parentId))) {
                $this->_processProduct($article);
                $this->_oParentProd = $article;
            }
        }

        return $this->_oParentProd;
    }
protected function _getParentProduct($parentId)
    {
        if ($parentId && $this->_oParentProd === null) {
            $this->_oParentProd = false;
            $article = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if (($article->load($parentId))) {
                $this->_processProduct($article);
                $this->_oParentProd = $article;
            }
        }

        return $this->_oParentProd;
    }
protected function _getParentProduct ( $ parentId ) { if ( $ parentId && $ this -> _oParentProd === null ) { $ this -> _oParentProd = false ; $ article = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; if ( ( $ article -> load ( $ parentId ) ) ) { $ this -> _processProduct ( $ article ) ; $ this -> _oParentProd = $ article ; } } return $ this -> _oParentProd ; }
Returns current product parent article object if it is available

@param string $parentId parent product id

@return \OxidEsales\Eshop\Application\Model\Article
Returns current product parent article object if it is available