diff --git a/reference/mongodb/mongodb/driver/manager/construct.xml b/reference/mongodb/mongodb/driver/manager/construct.xml index 27d21d4550..4de1341db1 100644 --- a/reference/mongodb/mongodb/driver/manager/construct.xml +++ b/reference/mongodb/mongodb/driver/manager/construct.xml @@ -280,14 +280,6 @@ mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][ parameter. Defaults to "primary". For details, see MongoDB\Driver\ReadPreference. - - - This accepts a string value (e.g. "primary", - "secondaryPreferred"), unlike - MongoDB\Driver\ReadPreference::__construct, - which takes an integer. - - diff --git a/reference/mongodb/mongodb/driver/readpreference/construct.xml b/reference/mongodb/mongodb/driver/readpreference/construct.xml index dc787386c3..303fcc2c3a 100644 --- a/reference/mongodb/mongodb/driver/readpreference/construct.xml +++ b/reference/mongodb/mongodb/driver/readpreference/construct.xml @@ -11,7 +11,7 @@ &reftitle.description; final public MongoDB\Driver\ReadPreference::__construct - intmode + string|intmode arraytagSets&null; arrayoptions[] @@ -38,7 +38,7 @@ - MongoDB\Driver\ReadPreference::RP_PRIMARY + MongoDB\Driver\ReadPreference::RP_PRIMARY or "primary" All operations read from the current replica set primary. This is @@ -47,7 +47,7 @@ - MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED + MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED or "primaryPreferred" In most situations, operations read from the primary but if it is @@ -56,7 +56,7 @@ - MongoDB\Driver\ReadPreference::RP_SECONDARY + MongoDB\Driver\ReadPreference::RP_SECONDARY or "secondary" All operations read from the secondary members of the replica set. @@ -64,7 +64,7 @@ - MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED + MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED or "secondaryPreferred" In most situations, operations read from secondary members but if no @@ -73,7 +73,7 @@ - MongoDB\Driver\ReadPreference::RP_NEAREST + MongoDB\Driver\ReadPreference::RP_NEAREST or "nearest" Operations read from member of the replica set with the least @@ -187,6 +187,16 @@ + + 1.3.0 + + + The mode argument now accepts a string value, + which is consistent with the "readPreference" URI + option for MongoDB\Driver\Manager::__construct. + + + 1.2.0