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.         public function getId(): ?string
  34.         {
  35.             return $this->id;
  36.         }
  37.         public function getPercentage(): ?string
  38.         {
  39.             return $this->percentage;
  40.         }
  41.         public function setPercentage(string $percentage): static
  42.         {
  43.             $this->percentage $percentage;
  44.             return $this;
  45.         }
  46.         public function getCompany(): ?Company
  47.         {
  48.             return $this->company;
  49.         }
  50.         public function setCompany(?Company $company): static
  51.         {
  52.             $this->company $company;
  53.             return $this;
  54.         }
  55.         public function getFeature(): ?Feature
  56.         {
  57.             return $this->feature;
  58.         }
  59.         public function setFeature(?Feature $feature): static
  60.         {
  61.             $this->feature $feature;
  62.             return $this;
  63.         }
  64. }