Преглед на файлове

FD3-643 update migrations para profile, template y action

Espinoza Guillermo преди 6 години
родител
ревизия
ca8a03d46e
променени са 4 файла, в които са добавени 165 реда и са изтрити 112 реда
  1. 140 104
      app/DoctrineMigrations/src/action.yml
  2. 1 0
      app/DoctrineMigrations/src/profile.yml
  3. 15 0
      app/DoctrineMigrations/src/template.yml
  4. 9 8
      src/FTTHBundle/Entity/Profile.php

Файловите разлики са ограничени, защото са твърде много
+ 140 - 104
app/DoctrineMigrations/src/action.yml


+ 1 - 0
app/DoctrineMigrations/src/profile.yml

@@ -6,3 +6,4 @@ insertorupdate:
           upload: 1024000
           download: 3072000
           tenancy_id: 1
+          template: "template_radius.tpl"

Файловите разлики са ограничени, защото са твърде много
+ 15 - 0
app/DoctrineMigrations/src/template.yml


+ 9 - 8
src/FTTHBundle/Entity/Profile.php

@@ -65,6 +65,15 @@ class Profile implements TenancyIdTraitInterface
     protected $template;
 
 
+    /**
+     * Constructor
+     */
+    public function __construct()
+    {
+        $this->onus = new \Doctrine\Common\Collections\ArrayCollection();
+        $this->template = 'template_radius.tpl';
+    }
+    
     /**
      * @return string
      */
@@ -177,14 +186,6 @@ class Profile implements TenancyIdTraitInterface
         return preg_replace("|[^A-Za-z0-9]|", "-", $this->name);
     }
     
-    /**
-     * Constructor
-     */
-    public function __construct()
-    {
-        $this->onus = new \Doctrine\Common\Collections\ArrayCollection();
-    }
-
     /**
      * Add onus
      *