src/ShopBundle/mappers/article/TPkgShopMapper_ArticleOtherCategoriesTeaser.class.php
protected function &getCategoryList(TdbShopArticle $oArticle)
    {
        /** @var $oCategoryList TdbShopCategoryList */
        $oCategoryList = &$oArticle->GetFieldShopCategoryList();
        $oCategoryList->GoToStart();
        if (0 === $oCategoryList->Length() && $oArticle->IsVariant()) {
            $oParent = &$oArticle->GetFieldVariantParent();
            $oCategoryList = &$oParent->GetFieldShopCategoryList();
            $oCategoryList->GoToStart();
        }

        return $oCategoryList;
    }
protected function &getCategoryList(TdbShopArticle $oArticle)
    {
        /** @var $oCategoryList TdbShopCategoryList */
        $oCategoryList = &$oArticle->GetFieldShopCategoryList();
        $oCategoryList->GoToStart();
        if (0 === $oCategoryList->Length() && $oArticle->IsVariant()) {
            $oParent = &$oArticle->GetFieldVariantParent();
            $oCategoryList = &$oParent->GetFieldShopCategoryList();
            $oCategoryList->GoToStart();
        }

        return $oCategoryList;
    }
protected function & getCategoryList ( TdbShopArticle $ oArticle ) { /** @var $oCategoryList TdbShopCategoryList */ $ oCategoryList = & $ oArticle -> GetFieldShopCategoryList ( ) ; $ oCategoryList -> GoToStart ( ) ; if ( 0 === $ oCategoryList -> Length ( ) && $ oArticle -> IsVariant ( ) ) { $ oParent = & $ oArticle -> GetFieldVariantParent ( ) ; $ oCategoryList = & $ oParent -> GetFieldShopCategoryList ( ) ; $ oCategoryList -> GoToStart ( ) ; } return $ oCategoryList ; }
return category list for article or parent article if article is variant and fetched category list is empty.

@param TdbShopArticle $oArticle

@return TdbShopCategoryList
return category list for article or parent article if article is variant and fetched category list is empty .