Added Cpeprovisioning/Save

This commit is contained in:
Frank Schubert
2021-10-19 21:40:41 +02:00
parent d6417ccdf2
commit ab8686de75
7 changed files with 376 additions and 88 deletions
+6
View File
@@ -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);