canni/YiiMongoDbSuite — pull request #65 by wkii (2012-09-24 14:27:06+00:00)
Title: Patch mongo replicaSet

"replicaSet"

The name of the replica set to connect to. If this is given, the master will be determined by using the ismaster database command on the seeds, so the driver may end up connecting to a server that was not even listed. See the replica set example below for details.

config example:

'mongodb' => array(
'class' => 'EMongoDB',
'connectionString' => 'mongodb:/localhost',
'dbName' => 'mydb',
'fsyncFlag' => false,
'safeFlag' => false,
'useCursor' => false,
'replicaSet'=>'myReplSet', // it's new
),