Selaa lähdekoodia

Ref #48. Fixed enable/disable CATV in ONU Template.

Maximiliano Schvindt 6 vuotta sitten
vanhempi
commit
e5fa5060e0
1 muutettua tiedostoa jossa 23 lisäystä ja 1 poistoa
  1. 23 1
      src/FTTHBundle/Entity/ONUTemplate.php

+ 23 - 1
src/FTTHBundle/Entity/ONUTemplate.php

@@ -123,7 +123,7 @@ class ONUTemplate implements TenancyIdTraitInterface
     protected $base = false;
 
     /**
-     * @ORM\Column(type="boolean", nullable=true, options={"default": true})
+     * @ORM\Column(type="boolean", nullable=true, columnDefinition="BOOLEAN DEFAULT TRUE")
      */
     protected $catv = true;
 
@@ -507,4 +507,26 @@ class ONUTemplate implements TenancyIdTraitInterface
         return $this->onuProfile;
     }
 
+    /**
+     * Set catv
+     *
+     * @param boolean $e
+     * @return ONUTemplate
+     */
+    public function setCatv($e)
+    {
+        $this->catv = $e;
+        return $this;
+    }
+
+    /**
+     * Get catv
+     *
+     * @return boolean
+     */
+    public function getCatv()
+    {
+        return $this->catv;
+    }
+
 }