public function getFileCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_fileCollection)) {
            $this->_fileCollection = Yii::createObject([
                'class' => 'yii\mongodb\Collection',
                'database' => $this->database,
                'name' => $this->name
            ]);
        }

        return $this->_fileCollection;
    }
public function getFileCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_fileCollection)) {
            $this->_fileCollection = Yii::createObject([
                'class' => 'yii\mongodb\Collection',
                'database' => $this->database,
                'name' => $this->name
            ]);
        }

        return $this->_fileCollection;
    }
public function getFileCollection ( $ refresh = false ) { if ( $ refresh || ! is_object ( $ this -> _fileCollection ) ) { $ this -> _fileCollection = Yii :: createObject ( [ 'class' => 'yii\mongodb\Collection' , 'database' => $ this -> database , 'name' => $ this -> name ] ) ; } return $ this -> _fileCollection ; }
Returns the MongoDB collection for the files.
@param bool $refresh whether to reload the collection instance even if it is found in the cache.
@return \yii\mongodb\Collection mongo collection instance.
@since 2.1
Returns the MongoDB collection for the files .