public function generateSlugAndPath()
    {
        // Set slug for this Category
        $this->slug = \Gedmo\Sluggable\Util\Urlizer::urlize($this->title);

        $category = $this;

        $pathSegments = array($category->getSlug());

        while ($category->getParent())
        {
            $category       = $category->getParent();
            $pathSegments[] = $category->getSlug();
        }

        $this->setPath(implode('/', array_reverse($pathSegments)));
    }