<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* Tag
*
* @ORM\Table(name="feature_product")
*
* @ORM\Entity(repositoryClass="App\Repository\System\FeatureProductRepository")
*/
class FeatureProduct
{
/**
* @var Feature
*
* @ORM\Id()
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Feature", inversedBy="featureProducts")
*
* @ORM\JoinColumn(name="feature_id", referencedColumnName="id")
*/
private $feature;
/**
* @var Product
*
* @ORM\Id()
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="featureProducts")
*
* @ORM\JoinColumn(name="product_id", referencedColumnName="id_product")
*/
private $product;
/**
* @var bool
*
* @ORM\Column(type="boolean")
*/
private $isFilter;
public function __construct()
{
$this->isFilter = false;
}
public function getFeature(): Feature
{
return $this->feature;
}
public function setFeature(Feature $feature): FeatureProduct
{
$this->feature = $feature;
return $this;
}
public function getProduct(): Product
{
return $this->product;
}
public function setProduct(Product $product): FeatureProduct
{
$this->product = $product;
return $this;
}
public function getIsFilter(): bool
{
return $this->isFilter;
}
public function setIsFilter(bool $isFilter): FeatureProduct
{
$this->isFilter = $isFilter;
return $this;
}
}