Resolve "New battery api module" #1017

Merged
jankstudio merged 7 commits from 172-new-battery-api-module into master 2019-01-21 08:56:15 +00:00
Showing only changes of commit 15b7473af7 - Show all commits

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;