(No version information available, might only be in Git)
CollectionModify::set — Set document attribute
$collection_field
, string $expression_or_literal
)Sets or updates attributes on documents in a collection.
本函数还未编写文档,仅有参数列表。
collection_field
The document path of the item to set.
expression_or_literal
The value to set on the specified attribute.
A CollectionModify object.
Example #1 mysql_xdevapi\CollectionModify::set() example
<?php
$res = $coll->modify('name like :param')->set("job", "Unemployed")->bind(['param' => 'Sakila'])->execute();
?>