<?php
namespace App\Entity\Master;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="eposm_m_join_table_company_feature")
* @ORM\Entity
*/
class JoinTableCompanyFeature
{
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="percentage", type="decimal", scale=2)
*/
protected $percentage;
// OneToMany
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Master\Company", inversedBy="investorForFeatures")
* @ORM\JoinColumn(name="company_id", referencedColumnName="id")
*/
private $company;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Master\Feature", inversedBy="investors")
* @ORM\JoinColumn(name="feature_id", referencedColumnName="id")
*/
private $feature;
//
public function getId(): ?string
{
return $this->id;
}
public function getPercentage(): ?string
{
return $this->percentage;
}
public function setPercentage(string $percentage): self
{
$this->percentage = $percentage;
return $this;
}
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
public function getFeature(): ?Feature
{
return $this->feature;
}
public function setFeature(?Feature $feature): self
{
$this->feature = $feature;
return $this;
}
}