Commit 4773e623 authored by Hannes Magnusson's avatar Hannes Magnusson

PHP-1331: Implement Collection::getDatabaseName() and Collection::getCollectionName()

parent 64d338af
......@@ -654,6 +654,13 @@ class Collection {
//var_dump(\BSON\toJSON(\BSON\fromArray($cmd)));
$command = new Command($cmd);
return $this->manager->executeCommand($dbname, $command, $rp);
} /* }}} */
}
function getCollectionName() {
return $this->collname;
}
function getDatabaseName() {
return $this->dbname;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment