瀏覽代碼

FD3-221 fixes importador profile

Guillermo Espinoza 7 年之前
父節點
當前提交
9d58b7c5cd
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1 1
      src/FTTHBundle/Command/ImportDataProfileCommand.php
  2. 10 0
      src/FTTHBundle/Entity/Profile.php

+ 1 - 1
src/FTTHBundle/Command/ImportDataProfileCommand.php

@@ -103,7 +103,7 @@ class ImportDataProfileCommand extends ContainerAwareCommand
                     $fields = array(
                         'id' => $d['id'],
                         'name' => $d['name'],
-                        'tenancy' => $d['tenancy_id'],
+                        'tenancyId' => $d['tenancy_id'],
                         'download' => $d['max_download'],
                         'upload' => $d['max_upload']);
                     $respuesta = $this->runPost($webservice, $fields);

+ 10 - 0
src/FTTHBundle/Entity/Profile.php

@@ -74,6 +74,16 @@ class Profile implements TenancyIdTraitInterface
         return $this->id;
     }
 
+    /**
+     * @return int
+     */
+    public function setId($id)
+    {
+        $this->id = $id;
+        
+        return $this;
+    }
+
     /**
      * @param string $name
      *