Added Cpeprovisioning/Save
This commit is contained in:
@@ -7,6 +7,7 @@ class Termination extends mfBaseModel {
|
||||
private $status;
|
||||
private $lineworker;
|
||||
private $workflowitems;
|
||||
private $cpeprovisioning;
|
||||
private $files;
|
||||
private $patching;
|
||||
private $creator;
|
||||
@@ -163,6 +164,11 @@ class Termination extends mfBaseModel {
|
||||
return $this->patching;
|
||||
}
|
||||
|
||||
if($name == "Cpeprovisioning") {
|
||||
$this->cpeprovisioning = CpeprovisioningModel::getFirst(["termination_id" => $this->id]);
|
||||
return $this->cpeprovisioning;
|
||||
}
|
||||
|
||||
$classname = ucfirst($name);
|
||||
$idfield = $name."_id";
|
||||
$this->$name = new $classname($this->$idfield);
|
||||
|
||||
Reference in New Issue
Block a user