Update document

have any way to update part of document in couchbase with PHP?

{
_id: 199
"STATUS": 1,
“FLAG”: 2,
“LOCK”: 1
}

Need update only (suposed) “field” LOCK .

Something like:

$cb->update(199,"LOCK",2); ?

Or really need read all document, make changes and save again?

Hi,

Yes, currently you have to replace the whole document.