MongoDB\GridFS\Bucket::getFilesCollection()
新增在版本1.2.
定义
返回值
AMongoDB\Collection
文件集合的对象。
示例
$bucket = (new MongoDB\Client)->test->selectGridFSBucket(); $filesCollection = $bucket->getFilesCollection(); var_dump($filesCollection->getCollectionName());
输出将类似于
string(8) "fs.files"