yii\mongodb\file\ActiveRecord::refreshFile PHP 메소드

refreshFile() 공개 메소드

Refreshes the [[file]] attribute from file collection, using current primary key.
public refreshFile ( ) : MongoGridFSFile | null
리턴 MongoGridFSFile | null refreshed file value.
    public function refreshFile()
    {
        $mongoFile = $this->getCollection()->get($this->getPrimaryKey());
        $this->setAttribute('file', $mongoFile);
        return $mongoFile;
    }