Add sap battery field to warranty entity #172
This commit is contained in:
parent
85121a973d
commit
15b7473af7
1 changed files with 18 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue