UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 06:01:04 +0000 (14:01 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 Nov 2013 06:01:04 +0000 (14:01 +0800)
UpdateDatabase.php

index 0ce9144..1c4648c 100644 (file)
@@ -101,16 +101,14 @@ class Pman_Xtuple_UpdateDatabase extends Pman
     {
         
 
-        $accounts = json_decode(file_get_contents($file),true);
+        $data= json_decode(file_get_contents($file),true);
         
-        DB_DataObject::factory('accnt')->importFromArray($this, $accounts);
+        DB_DataObject::factory('$db')->importFromArray($this);
         
         
-        
-        die("DONE! \n");
-    }
     }
     
+    
     function get($k = '',$opt)
     {
         $k = strtolower($k);