Phalcon\Db\Adapter\MongoDB\GridFS\CollectionWrapper::updateFilenameForId PHP Method

updateFilenameForId() public method

Updates the filename field in the file document for a given ID.
public updateFilenameForId ( mixed $id, string $filename ) : UpdateResult
$id mixed
$filename string
return Phalcon\Db\Adapter\MongoDB\UpdateResult
    public function updateFilenameForId($id, $filename)
    {
        return $this->filesCollection->updateOne(['_id' => $id], ['$set' => ['filename' => (string) $filename]]);
    }