Details
Description
According the latest documentation: http://www.couchbase.com/autodocs/couchbase-php-client-1.2.2/classes/Couchbase.html#method_getReplica
The $strategy parameter should be an string however in the documentation is an array used for the first example: $obj = $cb->getReplica("key", array("strategy" => COUCHBASE_REPLICA_SELECT, "index" => 0));
The following error is thrown when the COUCHBASE_REPLICA_SELECT strategy is used:
Fatal error: Uncaught exception 'CouchbaseIllegalArgumentsException' with message 'Strategy must be specified as a string./ Use: "first", "all" or "select")' in
The PHP snippet:
<?php
$replicaDocument = $this->connection->getReplica($id, array("strategy" => COUCHBASE_REPLICA_SELECT, "index" => 0));