source/Application/Model/Article.php
public function getParentArticle()
    {
        if ($this->oxarticles__oxparentid && ($sParentId = $this->oxarticles__oxparentid->value)) {
            $sIndex = $sParentId . "_" . $this->getLanguage();
            if (!isset(self::$_aLoadedParents[$sIndex])) {
                self::$_aLoadedParents[$sIndex] = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                self::$_aLoadedParents[$sIndex]->_blLoadPrice = false;
                self::$_aLoadedParents[$sIndex]->_blLoadVariants = false;

                if (!self::$_aLoadedParents[$sIndex]->loadInLang($this->getLanguage(), $sParentId)) {
                    //return false in case parent product failed to load
                    self::$_aLoadedParents[$sIndex] = false;
                }
            }

            return self::$_aLoadedParents[$sIndex];
        }
    }
public function getParentArticle()
    {
        if ($this->oxarticles__oxparentid && ($sParentId = $this->oxarticles__oxparentid->value)) {
            $sIndex = $sParentId . "_" . $this->getLanguage();
            if (!isset(self::$_aLoadedParents[$sIndex])) {
                self::$_aLoadedParents[$sIndex] = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
                self::$_aLoadedParents[$sIndex]->_blLoadPrice = false;
                self::$_aLoadedParents[$sIndex]->_blLoadVariants = false;

                if (!self::$_aLoadedParents[$sIndex]->loadInLang($this->getLanguage(), $sParentId)) {
                    //return false in case parent product failed to load
                    self::$_aLoadedParents[$sIndex] = false;
                }
            }

            return self::$_aLoadedParents[$sIndex];
        }
    }
public function getParentArticle ( ) { if ( $ this -> oxarticles__oxparentid && ( $ sParentId = $ this -> oxarticles__oxparentid -> value ) ) { $ sIndex = $ sParentId . "_" . $ this -> getLanguage ( ) ; if ( ! isset ( self :: $ _aLoadedParents [ $ sIndex ] ) ) { self :: $ _aLoadedParents [ $ sIndex ] = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; self :: $ _aLoadedParents [ $ sIndex ] -> _blLoadPrice = false ; self :: $ _aLoadedParents [ $ sIndex ] -> _blLoadVariants = false ; if ( ! self :: $ _aLoadedParents [ $ sIndex ] -> loadInLang ( $ this -> getLanguage ( ) , $ sParentId ) ) { //return false in case parent product failed to load self :: $ _aLoadedParents [ $ sIndex ] = false ; } } return self :: $ _aLoadedParents [ $ sIndex ] ; } }
Get parent article

@return oxArticle
Get parent article