|
|
@@ -9,11 +9,13 @@ use Lc\CaracoleBundle\Doctrine\Extension\FilterSectionInterface; |
|
|
|
use Lc\CaracoleBundle\Model\Section\SectionInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Extension\TreeInterface; |
|
|
|
use Lc\SovBundle\Doctrine\Pattern\AbstractFullEntity; |
|
|
|
use Lc\SovBundle\Model\File\FileInterface; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\MappedSuperclass() |
|
|
|
*/ |
|
|
|
abstract class ProductCategoryModel extends AbstractFullEntity implements TreeInterface, FilterSectionInterface, ProductCategoryInterface |
|
|
|
abstract class ProductCategoryModel extends AbstractFullEntity implements TreeInterface, FilterSectionInterface, |
|
|
|
ProductCategoryInterface |
|
|
|
{ |
|
|
|
/** |
|
|
|
* @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\Section\SectionInterface") |
|
|
@@ -42,6 +44,12 @@ abstract class ProductCategoryModel extends AbstractFullEntity implements TreeIn |
|
|
|
*/ |
|
|
|
protected $saleStatus; |
|
|
|
|
|
|
|
/** |
|
|
|
* @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\File\FileInterface", cascade={"persist", "remove"}) |
|
|
|
*/ |
|
|
|
protected $image; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct() |
|
|
|
{ |
|
|
|
$this->childrens = new ArrayCollection(); |
|
|
@@ -181,4 +189,16 @@ abstract class ProductCategoryModel extends AbstractFullEntity implements TreeIn |
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
public function getImage(): ?FileInterface |
|
|
|
{ |
|
|
|
return $this->image; |
|
|
|
} |
|
|
|
|
|
|
|
public function setImage(?FileInterface $image): self |
|
|
|
{ |
|
|
|
$this->image = $image; |
|
|
|
|
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
} |