mysql_xdevapi\CollectionModify
PHP Manual

CollectionModify::merge

(No version information available, might only be in Git)

CollectionModify::mergeMerge attributes to document

说明

public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::merge ( string $document )

Adds attributes taken from a document into the documents in a collection.

Warning

本函数还未编写文档,仅有参数列表。

参数

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();

?>

mysql_xdevapi\CollectionModify
PHP Manual