mysql_xdevapi\CollectionModify
PHP Manual

CollectionModify::set

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

CollectionModify::setSet document attribute

Description

public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::set ( string $collection_field , string $expression_or_literal )

Sets or updates attributes on documents in a collection.

Warning

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

Parameters

collection_field

The document path of the item to set.

expression_or_literal

The value to set on the specified attribute.

Return Values

A CollectionModify object.

Examples

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

<?php

$res 
$coll->modify('name like :param')->set("job""Unemployed")->bind(['param' => 'Sakila'])->execute();

?>

mysql_xdevapi\CollectionModify
PHP Manual