Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
League
Monga
Query
Update
rename
League\Monga\Query\Update::rename PHP Method
Update Class Documentation
Show file
Open project: php-loep/monga
rename()
public
method
Rename a field.
public
rename
(
string
$field
,
string
$to
) :
object
$field
string
field name
$to
string
new field name
return
object
$this
public function rename($field, $to) { return $this->update('$rename', $field, $to); }
Update
addToSet
atomic
getOptions
getUpdate
increment
multiple
pop
pull
pullAll
push
pushAll
remove
rename
set
single
unshift
update
upsert