src/Money/DataMapper/Data/Money/Transaction.php
public function getCategoryText()
    {
        $label = '';

        if (!isset(self::$categories[$this->getCategoryId()])) {
            self::$categories[$this->getCategoryId()] = $this->getCategory();
        }

        $category = self::$categories[$this->getCategoryId()];

        if ($category->getParentId() > 0) {
            if (!isset(self::$categories[$category->getParentId()])) {
                self::$categories[$category->getParentId()] = $category->getParent();
            }

            $categoryParent = self::$categories[$category->getParentId()];

            $label .= $categoryParent->getName() . ' / ';
        }

        $label .= $category->getName();

        return $label;
    }
public function getCategoryText()
    {
        $label = '';

        if (!isset(self::$categories[$this->getCategoryId()])) {
            self::$categories[$this->getCategoryId()] = $this->getCategory();
        }

        $category = self::$categories[$this->getCategoryId()];

        if ($category->getParentId() > 0) {
            if (!isset(self::$categories[$category->getParentId()])) {
                self::$categories[$category->getParentId()] = $category->getParent();
            }

            $categoryParent = self::$categories[$category->getParentId()];

            $label .= $categoryParent->getName() . ' / ';
        }

        $label .= $category->getName();

        return $label;
    }
Get Parent Category / Category label

@return string