array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'mysql-xdevapi-collectionmodify.patch.php', 1 => 'CollectionModify::patch', ), 'up' => array ( 0 => 'class.mysql-xdevapi-collectionmodify.php', 1 => 'mysql_xdevapi\\CollectionModify', ), 'prev' => array ( 0 => 'mysql-xdevapi-collectionmodify.limit.php', 1 => 'CollectionModify::limit', ), 'next' => array ( 0 => 'mysql-xdevapi-collectionmodify.replace.php', 1 => 'CollectionModify::replace', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/collectionmodify/patch.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
CollectionModify::patch — Patch document
Takes 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.
Ejemplo #1 mysql_xdevapi\CollectionModify::patch() example
<?php
$res = $coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();
?>