Skip to content

Instantly share code, notes, and snippets.

@pjedrzejewski
Created September 25, 2011 18:46
Show Gist options
  • Save pjedrzejewski/1240954 to your computer and use it in GitHub Desktop.
Save pjedrzejewski/1240954 to your computer and use it in GitHub Desktop.
Easy categorizing with Symfony2, gist #2.
<?php
namespace Application\Bundle\AssortmentBundle\Entity;
use Sylius\Bundle\CatalogBundle\Entity\Category as BaseCategory;
class Category extends BaseCategory
{
protected $products;
public function getProducts()
{
return $this->products;
}
public function setProducts($products)
{
$this->products = $products;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment