CollectionModify::patch
(No version information available, might only be in Git)
CollectionModify::patch — Patch document
説明
public mysql_xdevapi\CollectionModify::patch
( string
$document
) : mysql_xdevapi\CollectionModifyTakes a patch object and applies it on one or more documents, and can update multiple document properties.
警告
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
パラメータ
-
document -
A document with the properties to apply to the matching documents.
返り値
A CollectionModify object.
例
例1 mysql_xdevapi\CollectionModify::patch() example
<?php
$res = $coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();
?>