Add sap battery field to warranty entity #172

This commit is contained in:
Kendrick Chan 2019-01-21 02:08:49 +08:00
parent 85121a973d
commit 15b7473af7

View file

@ -59,6 +59,13 @@ class Warranty
*/
protected $bty_size;
// sap battery
/**
* @ORM\ManyToOne(targetEntity="SAPBattery", inversedBy="warranties")
* @ORM\JoinColumn(name="sap_bty_id", referencedColumnName="id", nullable=true)
*/
protected $sap_bty;
// status
/**
* @ORM\Column(type="string", length=25)
@ -202,6 +209,17 @@ class Warranty
return $this->bty_size;
}
public function setSAPBattery(SAPBattery $sap_bty)
{
$this->sap_bty = $sap_bty;
return $this;
}
public function getSAPBattery()
{
return $this->sap_bty;
}
public function setStatus($status)
{
$this->status = $status;