add Patching::Save
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user