فهرست منبع

Merged in FD3-583 (pull request #84)

FD3-583 catv para ZTE
Guillermo Espinoza 7 سال پیش
والد
کامیت
df4ec5ee3d
3فایلهای تغییر یافته به همراه28 افزوده شده و 1 حذف شده
  1. 1 1
      app/DoctrineMigrations/src/template.yml
  2. 1 0
      src/FTTHBundle/Admin/ONUAdmin.php
  3. 26 0
      src/FTTHBundle/Entity/ONU.php

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
app/DoctrineMigrations/src/template.yml


+ 1 - 0
src/FTTHBundle/Admin/ONUAdmin.php

@@ -137,6 +137,7 @@ class ONUAdmin extends WorkflowBaseAdmin
                     ->add('vlan')
                     ->add('traffic_profile')
                     ->add('tcontprofile')
+                    ->add('catv')
                 ->end()
                 ->with('FiberLink', ['class' => "col-md-12 {$hidden['FiberLink']} olt_mark FiberLink"])
                     ->add('vlans', null, array(

+ 26 - 0
src/FTTHBundle/Entity/ONU.php

@@ -203,6 +203,11 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
      * @JMS\MaxDepth(1)
      */
     protected $vlan;
+    
+    /**
+     * @ORM\Column(type="boolean", nullable=true, options={"default": true})
+     */
+    protected $catv = true;
 
 
     /**
@@ -831,4 +836,25 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface, LocationInterface
             }
         }
     }
+    
+    /**
+     * @return boolean
+     */
+    public function getCatv()
+    {
+        return $this->catv;
+    }
+    
+    /**
+     * @param boolean $catv
+     *
+     * @return ONU
+     */
+    public function setCatv($catv)
+    {
+        $this->catv = $catv;
+        
+        return $this;
+    }
+    
 }