Added brand storage in product table

This commit is contained in:
Franck Allimant
2014-06-27 20:12:55 +02:00
parent 15f60ad22b
commit f279131fe6
4 changed files with 31 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ class ProductUpdateEvent extends ProductCreateEvent
protected $chapo;
protected $description;
protected $postscriptum;
protected $brand_id;
public function __construct($product_id)
{
@@ -72,4 +74,22 @@ class ProductUpdateEvent extends ProductCreateEvent
return $this;
}
/**
* @param int $brand_id
* @return $this
*/
public function setBrandId($brand_id)
{
$this->brand_id = $brand_id;
return $this;
}
/**
* @return int
*/
public function getBrandId()
{
return $this->brand_id;
}
}