Added OrderJournal
This commit is contained in:
@@ -5,6 +5,7 @@ class Order extends mfBaseModel {
|
||||
private $billingaddress;
|
||||
private $products;
|
||||
private $terminations;
|
||||
private $journals;
|
||||
private $files;
|
||||
private $creator;
|
||||
private $editor;
|
||||
@@ -132,6 +133,11 @@ class Order extends mfBaseModel {
|
||||
return $this->terminations;
|
||||
}
|
||||
|
||||
if($name == "journals") {
|
||||
$this->journals = OrderJournalModel::search(["order_id" => $this->id]);
|
||||
return $this->journals;
|
||||
}
|
||||
|
||||
if($name == "files") {
|
||||
$this->files = OrderFileModel::search(['order_id' => $this->id]);
|
||||
return $this->files;
|
||||
|
||||
Reference in New Issue
Block a user