(No version information available, might only be in Git)
CollectionModify::merge — Merge attributes to document
$document
)Adds attributes taken from a document into the documents in a collection.
本函数还未编写文档,仅有参数列表。
document
The document with attributes to merge.
A CollectionModify object.
Example #1 mysql_xdevapi\CollectionModify::merge() example
<?php
$res = $coll->modify("Married like 'NO'")->merge("{'Divorced' : 'NO', 'Vegan' : 'YES'}")->execute();
?>