Explorar o código

FD3-221 fixes importador profile

Guillermo Espinoza %!s(int64=7) %!d(string=hai) anos
pai
achega
9d58b7c5cd

+ 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
      *