瀏覽代碼

Se actualiza extraData a enviar al Base.

Maxi Schvindt 7 年之前
父節點
當前提交
ffb0cdba25
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/CablemodemBundle/Entity/CMTS.php

+ 7 - 0
src/CablemodemBundle/Entity/CMTS.php

@@ -237,6 +237,8 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
             'name' => $this->name, 
             'host' => $this->host, 
             'modelId' => $this->model ? $this->model->getId() : null,
+            'mark' => null,
+            'library' => null,
             'snmpCommunity' => $this->snmpCommunity,
             'snmpVersion' => $this->snmpVersion,
             'docsVersion' => $this->docsVersion,
@@ -244,6 +246,11 @@ class CMTS implements DeviceInterface, TenancyIdTraitInterface, SoftDeleteInterf
             'timeScan' => $this->timeScan,
             'timeCmtsOctets' => $this->timeCmtsOctets,
         ];
+
+        if($this->model) {
+            $extraData['mark'] = $this->model->getMark();
+            $extraData['library'] = $this->model->getLibrary();
+        }
         
         return [
             'deviceType' => get_class($this),