Created
September 25, 2011 18:57
-
-
Save pjedrzejewski/1240962 to your computer and use it in GitHub Desktop.
Easy categorizing with Symfony2, gist #4.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Bundle\AssortmentBundle\Entity; | |
use Sylius\Bundle\CatalogBundle\Model\CategoryInterface; | |
use Sylius\Bundle\AssortmentBundle\Entity\Product as BaseProduct; | |
class Product extends BaseProduct | |
{ | |
protected $category; | |
public function getCategory() | |
{ | |
return $this->category; | |
} | |
public function setCategory(CategoryInterface $category) | |
{ | |
$this->category = $category; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment