public function refreshFile() { $mongoFile = $this->getCollection()->get($this->getPrimaryKey()); $this->setAttribute('file', $mongoFile); return $mongoFile; }