소스 검색

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
      *