d3orn / hikomsys

hikomsys
3 stars 1 forks source link

PHP MongoDB Driver #6

Open d3orn opened 10 years ago

d3orn commented 10 years ago

I should close the connection after every method

d3orn commented 10 years ago

one possible solution

$db->command(array( "eval" => new MongoCode("function(){ " . "db.collection.find().forEach(function(doc) { " . "db.newcollection.insert(doc); " . "}); " . "};" ); ));

d3orn commented 10 years ago

I fixed this but I have to update the method for copying stuff for the other functions. See QuizzesControler and TODO-tags