showing construction company in Pipe- and Linework
This commit is contained in:
@@ -10,6 +10,7 @@ class Building extends mfBaseModel {
|
||||
private $type;
|
||||
private $status;
|
||||
private $pipeworker;
|
||||
private $lineworker;
|
||||
private $terminations;
|
||||
private $termination_workflow_comments;
|
||||
private $workflowitems;
|
||||
@@ -56,6 +57,7 @@ class Building extends mfBaseModel {
|
||||
$this->type = null;
|
||||
$this->status = null;
|
||||
$this->pipeworker = null;
|
||||
$this->lineworker = null;
|
||||
$this->terminations = null;
|
||||
$this->workflowitems = null;
|
||||
$this->files = null;
|
||||
@@ -292,6 +294,17 @@ class Building extends mfBaseModel {
|
||||
//$this->pipeworker = new Address($this->pipeworker_id);
|
||||
return $this->pipeworker;
|
||||
}
|
||||
|
||||
if($name == "lineworker") {
|
||||
$lineworker = mfValuecache::singleton()->get("mfObjectmodel-Address-".$this->lineworker_id);
|
||||
if(!$lineworker) {
|
||||
$lineworker = new Address($this->lineworker_id);
|
||||
mfValuecache::singleton()->set("mfObjectmodel-Address-".$this->lineworker_id, $lineworker);
|
||||
}
|
||||
$this->lineworker = $lineworker;
|
||||
//$this->lineworker = new Address($this->lineworker_id);
|
||||
return $this->lineworker;
|
||||
}
|
||||
|
||||
if($name == "terminations") {
|
||||
$this->terminations = TerminationModel::search(['building_id' => $this->id]);
|
||||
|
||||
Reference in New Issue
Block a user