src/Entity/Master/JoinTableCompanyFeature.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Master;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="eposm_m_join_table_company_feature")
  7.  * @ORM\Entity
  8.  */
  9. class JoinTableCompanyFeature
  10. {
  11.     /**
  12.      * @ORM\Column(name="id", type="bigint")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="AUTO")
  15.      */
  16.     protected $id;
  17.     /**
  18.      * @ORM\Column(name="percentage", type="decimal", scale=2)
  19.      */
  20.     protected $percentage;
  21.     
  22.     // OneToMany
  23.         /**
  24.          * @ORM\ManyToOne(targetEntity="App\Entity\Master\Company", inversedBy="investorForFeatures")
  25.          * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  26.          */
  27.         private $company;
  28.         /**
  29.          * @ORM\ManyToOne(targetEntity="App\Entity\Master\Feature", inversedBy="investors")
  30.          * @ORM\JoinColumn(name="feature_id", referencedColumnName="id")
  31.          */
  32.         private $feature;
  33.     //
  34.     public function getId(): ?string
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getPercentage(): ?string
  39.     {
  40.         return $this->percentage;
  41.     }
  42.     public function setPercentage(string $percentage): self
  43.     {
  44.         $this->percentage $percentage;
  45.         return $this;
  46.     }
  47.     public function getCompany(): ?Company
  48.     {
  49.         return $this->company;
  50.     }
  51.     public function setCompany(?Company $company): self
  52.     {
  53.         $this->company $company;
  54.         return $this;
  55.     }
  56.     public function getFeature(): ?Feature
  57.     {
  58.         return $this->feature;
  59.     }
  60.     public function setFeature(?Feature $feature): self
  61.     {
  62.         $this->feature $feature;
  63.         return $this;
  64.     }
  65. }