src/Entity/System/FeatureProduct.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Tag
  6.  *
  7.  * @ORM\Table(name="feature_product")
  8.  *
  9.  * @ORM\Entity(repositoryClass="App\Repository\System\FeatureProductRepository")
  10.  */
  11. class FeatureProduct
  12. {
  13.     /**
  14.      * @var Feature
  15.      *
  16.      * @ORM\Id()
  17.      *
  18.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Feature", inversedBy="featureProducts")
  19.      *
  20.      * @ORM\JoinColumn(name="feature_id", referencedColumnName="id")
  21.      */
  22.     private $feature;
  23.     /**
  24.      * @var Product
  25.      *
  26.      * @ORM\Id()
  27.      *
  28.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Product", inversedBy="featureProducts")
  29.      *
  30.      * @ORM\JoinColumn(name="product_id", referencedColumnName="id_product")
  31.      */
  32.     private $product;
  33.     /**
  34.      * @var bool
  35.      *
  36.      * @ORM\Column(type="boolean")
  37.      */
  38.     private $isFilter;
  39.     public function __construct()
  40.     {
  41.         $this->isFilter false;
  42.     }
  43.     public function getFeature(): Feature
  44.     {
  45.         return $this->feature;
  46.     }
  47.     public function setFeature(Feature $feature): FeatureProduct
  48.     {
  49.         $this->feature $feature;
  50.         return $this;
  51.     }
  52.     public function getProduct(): Product
  53.     {
  54.         return $this->product;
  55.     }
  56.     public function setProduct(Product $product): FeatureProduct
  57.     {
  58.         $this->product $product;
  59.         return $this;
  60.     }
  61.     public function getIsFilter(): bool
  62.     {
  63.         return $this->isFilter;
  64.     }
  65.     public function setIsFilter(bool $isFilter): FeatureProduct
  66.     {
  67.         $this->isFilter $isFilter;
  68.         return $this;
  69.     }
  70. }