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
yii
mongodb
Command
setReadConcern
yii\mongodb\Command::setReadConcern PHP Method
Command Class Documentation
Show file
Open project: yiisoft/yii2-mongodb
setReadConcern()
public
method
Sets read concern for this command.
public
setReadConcern
(
MongoDB\Driver\ReadConcern |
string
$readConcern
)
$readConcern
MongoDB\Driver\ReadConcern |
string
read concern, it can be an instance of [[ReadConcern]] or scalar level value, for example: 'local'.
public function setReadConcern($readConcern) { $this->_readConcern = $readConcern; return $this; }
Command
addDelete
addInsert
addUpdate
aggregate
batchInsert
beginProfile
count
createCollection
createIndexes
delete
distinct
dropCollection
dropDatabase
dropIndexes
endProfile
execute
executeBatch
explain
find
findAndModify
getReadConcern
getReadPreference
getWriteConcern
group
insert
listCollections
listDatabases
listIndexes
log
mapReduce
query
setReadConcern
setReadPreference
setWriteConcern
update