Please wait while we load your page...

PasswordSentry

Latest Version [8.00202205221] Last Updated [May-22-2022]

Tools

PHP Manual [CollectionModify

Protect Your Website Today


PHP Manual || mysql_xdevapi\CollectionModify

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

CollectionModify::patchPatch document

Description

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

This function is currently not documented; only its argument list is available.

Parameters

document

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

Return Values

A CollectionModify object.

Examples

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

<?php

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

?>


PHP Manual || mysql_xdevapi\CollectionModify