die("Missing Source directory for person json files or prefix for the passwrod! Try -f [JSON file path] -p [prefix] \n");
}
- DB_DataObject::factory('person')->createPerson($opt);
+ DB_DataObject::factory('person')->importFromJson($opt['source'], $opt['prefix']);
die("DONE!");
}
die("Missing Source directory for account json files! Try -f [JSON file path] \n");
}
- DB_DataObject::factory('person')->createPerson($opt);
+ DB_DataObject::factory('accnt')->importFromJson($opt);
die("DONE!");
}