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

@@ -99,6 +99,7 @@ class Product extends BaseAction implements EventSubscriberInterface
->setChapo($event->getChapo())
->setPostscriptum($event->getPostscriptum())
->setVisible($event->getVisible() ? 1 : 0)
->setBrandId($event->getBrandId() <= 0 ? null : $event->getBrandId())
->save()
;