source/Application/Model/Article.php
protected function _hasAnyVariant($blForceCoreTable = null)
    {
        if (($sId = $this->getId())) {
            if ($this->oxarticles__oxshopid->value == \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId()) {
                return (bool) $this->oxarticles__oxvarcount->value;
            }
            $sArticleTable = $this->getViewName($blForceCoreTable);

            return (bool) \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne("select 1 from $sArticleTable where oxparentid='{$sId}'");
        }

        return false;
    }
protected function _hasAnyVariant($blForceCoreTable = null)
    {
        if (($sId = $this->getId())) {
            if ($this->oxarticles__oxshopid->value == \OxidEsales\Eshop\Core\Registry::getConfig()->getShopId()) {
                return (bool) $this->oxarticles__oxvarcount->value;
            }
            $sArticleTable = $this->getViewName($blForceCoreTable);

            return (bool) \OxidEsales\Eshop\Core\DatabaseProvider::getDb()->getOne("select 1 from $sArticleTable where oxparentid='{$sId}'");
        }

        return false;
    }
protected function _hasAnyVariant ( $ blForceCoreTable = null ) { if ( ( $ sId = $ this -> getId ( ) ) ) { if ( $ this -> oxarticles__oxshopid -> value == \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopId ( ) ) { return ( bool ) $ this -> oxarticles__oxvarcount -> value ; } $ sArticleTable = $ this -> getViewName ( $ blForceCoreTable ) ; return ( bool ) \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( ) -> getOne ( "select 1 from $sArticleTable where oxparentid='{$sId}'" ) ; } return false ; }
Checks if parent has ANY variant assigned

@param bool $blForceCoreTable force core table usage

@return bool
Checks if parent has ANY variant assigned