Add ref_jo association to job order #24
This commit is contained in:
parent
730f18c813
commit
172e09c2ef
1 changed files with 18 additions and 0 deletions
|
|
@ -179,6 +179,13 @@ class JobOrder
|
|||
*/
|
||||
protected $tickets;
|
||||
|
||||
// reference job order
|
||||
/**
|
||||
* @ORM\OneToOne(targetEntity="JobOrder")
|
||||
* @ORM\JoinColumn(name="ref_jo_id", referencedColumnName="id")
|
||||
*/
|
||||
protected $ref_jo;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->date_create = new DateTime();
|
||||
|
|
@ -446,4 +453,15 @@ class JobOrder
|
|||
{
|
||||
return $this->tickets;
|
||||
}
|
||||
|
||||
public function setReferenceJO(JobOrder $ref_jo)
|
||||
{
|
||||
$this->ref_jo = $ref_jo;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getReferenceJO()
|
||||
{
|
||||
return $this->ref_jo;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue