mongodb\Database getFileCollection()

getFileCollection() public method

Returns Mongo GridFS collection with given prefix.

public yii\mongodb\file\Collection getFileCollection ( $prefix = 'fs', $refresh = false )
$prefix string

Collection prefix.

$refresh boolean

Whether to reload the collection instance even if it is found in the cache.

return yii\mongodb\file\Collection

Mongo GridFS collection.

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.