Browse Source

Se actualiza vendors. Se arregla temas de tenancy en las entidades, se
extiende método en los admins.

Maximiliano Schvindt 7 years ago
parent
commit
658cbd50b9

+ 4 - 4
composer.lock

@@ -1397,7 +1397,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/BaseAdmin.git",
-                "reference": "71fa312f543df1719e2717248bac5dc79398366b"
+                "reference": "58bc1159ba61996ed300a9072ee5ec691b38bbcf"
             },
             "type": "library",
             "autoload": {
@@ -1412,7 +1412,7 @@
                 "bootstrap",
                 "sonata"
             ],
-            "time": "2017-08-07 18:21:01"
+            "time": "2017-08-11 17:26:08"
         },
         {
             "name": "ik/device-bundle",
@@ -1565,7 +1565,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/Webservice.git",
-                "reference": "657599a288990dc1c2505567376bb12c522d1750"
+                "reference": "0f3977e0e2db4c2f16436379083483bc9c9ef149"
             },
             "require": {
                 "ext-curl": "*",
@@ -1578,7 +1578,7 @@
                 }
             },
             "description": "The Flowdat3 Webservice Rest",
-            "time": "2017-08-01 17:54:58"
+            "time": "2017-08-14 14:08:43"
         },
         {
             "name": "ik/workflow-bundle",

+ 0 - 9
src/FTTHBundle/Admin/NAPAdmin.php

@@ -63,13 +63,4 @@ class NAPAdmin extends BaseAdmin
             ->add('extraData');
     }
 
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
-
 }

+ 1 - 8
src/FTTHBundle/Admin/OLTAdmin.php

@@ -108,12 +108,5 @@ class OLTAdmin extends WorkflowBaseAdmin
             ->end()   
         ;
     }
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
+    
 }

+ 1 - 8
src/FTTHBundle/Admin/OLTModelAdmin.php

@@ -73,12 +73,5 @@ class OLTModelAdmin extends BaseAdmin
             ->add('extraData')
         ;
     }
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
+    
 }

+ 0 - 9
src/FTTHBundle/Admin/ONUAdmin.php

@@ -112,13 +112,4 @@ class ONUAdmin extends WorkflowBaseAdmin
             ->end();
     }
 
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
-
 }

+ 0 - 9
src/FTTHBundle/Admin/ONUModelAdmin.php

@@ -56,13 +56,4 @@ class ONUModelAdmin extends BaseAdmin
             ->add('extraData');
     }
 
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
-
 }

+ 0 - 9
src/FTTHBundle/Admin/ProfileAdmin.php

@@ -65,13 +65,4 @@ class ProfileAdmin extends BaseAdmin
             ->add('extraData');
     }
 
-    /**
-     * @param mixed $object
-     */
-    public function prePersist($object)
-    {
-        parent::prePersist($object);
-        $this->addTenancyIdFromServicie($object);
-    }
-
 }

+ 1 - 1
src/FTTHBundle/Entity/OLT.php

@@ -419,7 +419,7 @@ class OLT implements DeviceInterface, TenancyIdTraitInterface
         $deviceData['deviceType'] = get_class($this);
         $deviceData['deviceId'] = $this->id;
         $deviceData['ip'] = $this->ip;
-        $deviceData['tenancyId'] = $this->tenancyId;
+        $deviceData['tenancy'] = $this->tenancyId;
 
         $deviceExtraData = array('snmpCommunity' => $this->snmpCommunity, 'sshUser' => $this->sshUser, 'sshPass' => $this->sshPass,
                                  'libraryVersion' => $this->libraryVersion, 'name' => $this->name);

+ 1 - 1
src/FTTHBundle/Entity/ONU.php

@@ -613,7 +613,7 @@ class ONU implements DeviceInterface, TenancyIdTraitInterface
         $deviceData['deviceType'] = get_class($this);
         $deviceData['deviceId'] = $this->id;
         $deviceData['ip'] = $this->ip;
-        $deviceData['tenancyId'] = $this->tenancyId;
+        $deviceData['tenancy'] = $this->tenancyId;
 
         $deviceExtraData = array('mac' => $this->mac, 'serialNumber' => $this->serialNumber, 'ponSerialNumber' => $this->ponSerialNumber,
             'clientId' => $this->clientId);