php教程

CollectionModify::patch

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

CollectionModify::patchPatch document

说明

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

Takes a patch object and applies it on one or more documents, and can update multiple document properties.

Warning

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

参数

document

A document with the properties to apply to the matching documents.

返回值

A CollectionModify object.

范例

Example #1 mysql_xdevapi\CollectionModify::patch() example

<?php

$res 
$coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();

?>

User Contributed Notes

There are no user contributed notes for this page.

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788