Added Cpeprovisioning/Save
This commit is contained in:
@@ -4,6 +4,7 @@ class OrderProduct extends mfBaseModel {
|
||||
private $order;
|
||||
private $product;
|
||||
private $termination;
|
||||
private $cpeprovisioning;
|
||||
private $editor;
|
||||
private $creator;
|
||||
|
||||
@@ -34,6 +35,12 @@ class OrderProduct extends mfBaseModel {
|
||||
public function getProperty($name) {
|
||||
if($this->$name == null) {
|
||||
|
||||
if($name == "cpeprovisioning") {
|
||||
$this->cpeprovisioning = CpeprovisioningModel::getFirst(["orderproduct_id" => $this->id]);
|
||||
return $this->cpeprovisioning;
|
||||
}
|
||||
|
||||
|
||||
if($name == "creator") {
|
||||
if($this->id) {
|
||||
$this->creator = new User($this->create_by);
|
||||
|
||||
Reference in New Issue
Block a user