src/ShopBundle/objects/db/TShopCategory.class.php
public function &GetParent()
    {
        $oParent = null;
        if (!empty($this->fieldShopCategoryId)) {
            $oParent = TdbShopCategory::GetNewInstance();
            $oParent->SetLanguage($this->iLanguageId);
            if (!$oParent->Load($this->fieldShopCategoryId)) {
                $oParent = null;
            }
        }

        return $oParent;
    }
public function &GetParent()
    {
        $oParent = null;
        if (!empty($this->fieldShopCategoryId)) {
            $oParent = TdbShopCategory::GetNewInstance();
            $oParent->SetLanguage($this->iLanguageId);
            if (!$oParent->Load($this->fieldShopCategoryId)) {
                $oParent = null;
            }
        }

        return $oParent;
    }
public function & GetParent ( ) { $ oParent = null ; if ( ! empty ( $ this -> fieldShopCategoryId ) ) { $ oParent = TdbShopCategory :: GetNewInstance ( ) ; $ oParent -> SetLanguage ( $ this -> iLanguageId ) ; if ( ! $ oParent -> Load ( $ this -> fieldShopCategoryId ) ) { $ oParent = null ; } } return $ oParent ; }
return the parent category, or null if no parent is found.

@return TdbShopCategory
return the parent category or null if no parent is found .