add Patching::Save

This commit is contained in:
Frank Schubert
2021-09-23 20:42:04 +02:00
parent d80cf387e6
commit ba1c96c3f5
4 changed files with 293 additions and 14 deletions
+6
View File
@@ -8,6 +8,7 @@ class Termination extends mfBaseModel {
private $lineworker;
private $workflowitems;
private $files;
private $patching;
private $creator;
private $editor;
@@ -154,6 +155,11 @@ class Termination extends mfBaseModel {
return $this->files;
}
if($name == "patching") {
$this->patching = PatchingModel::getFirst(["termination_i" => $this->id]);
return $this->patching;
}
$classname = ucfirst($name);
$idfield = $name."_id";
$this->$name = new $classname($this->$idfield);