Uat changes #854

Merged
jankstudio merged 24 commits from uat-changes into master 2018-03-13 03:32:04 +00:00
Showing only changes of commit 98c92c9184 - Show all commits

View file

@ -34,6 +34,12 @@ class Hub
*/
protected $users;
// hub outlets
/**
* @ORM\OneToMany(targetEntity="Outlet", mappedBy="hub")
*/
protected $outlets;
public function __construct()
{
$this->time_open = new DateTime();
@ -61,4 +67,15 @@ class Hub
{
return $this->job_orders;
}
public function addOutlet(Outlet $outlet)
{
$this->outlets[] = $outlet;
return $this;
}
public function getOutlets()
{
return $this->outlets;
}
}