public function removeCategory(CategoryInterface $category)
    {
        if ($this->hasCategory($category)) {
            $this->categories->removeElement($category);
        }

        return $this;
    }
public function removeCategory(CategoryInterface $category)
    {
        if ($this->hasCategory($category)) {
            $this->categories->removeElement($category);
        }

        return $this;
    }
public function removeCategory ( CategoryInterface $ category ) { if ( $ this -> hasCategory ( $ category ) ) { $ this -> categories -> removeElement ( $ category ) ; } return $ this ; }
Remove category from user session

@param CategoryInterface $category

@return $this
Remove category from user session