Open d3orn opened 10 years ago
one possible solution
$db->command(array( "eval" => new MongoCode("function(){ " . "db.collection.find().forEach(function(doc) { " . "db.newcollection.insert(doc); " . "}); " . "};" ); ));
I fixed this but I have to update the method for copying stuff for the other functions. See QuizzesControler and TODO-tags
I should close the connection after every method