CouchbaseMetaDoc Object


I am using the php sdk 2.0.5 and all my return data comes in the form of a CouchbaseMetaDoc Object. I have seen some docs that say it should return a associative array but that doesn’t seem to be the case. I have also seen the setTranscoder function but I’m not sure how that works. What is the correct option to get an associative array returned?

Thanks much.


Hey layerxfounder,

The result of the operations will be a CouchbaseMetaDoc value which contains a few pieces of meta-data information along with the actual value of the document which is accessible through the ->value property. The value properly will be a json_decode’d value (which by default is a stdObject).

Cheers, Brett