public function getSavedFile()
    {
        if($this->savedAttribute && $this->owner->{$this->savedAttribute}){
            return FileModel::findOne($this->owner->{$this->savedAttribute});
        }
    }
public function getSavedFile()
    {
        if($this->savedAttribute && $this->owner->{$this->savedAttribute}){
            return FileModel::findOne($this->owner->{$this->savedAttribute});
        }
    }
public function getSavedFile ( ) { if ( $ this -> savedAttribute && $ this -> owner -> { $ this -> savedAttribute } ) { return FileModel :: findOne ( $ this -> owner -> { $ this -> savedAttribute } ) ; } }
Get saved file
@return FileModel
Get saved file