PHP Класс Phalcon\Db\Adapter\MongoDB\Operation\UpdateMany

См. также: MongoDB\Collection::updateMany()
См. также: http://docs.mongodb.org/manual/reference/command/update/
Наследование: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $databaseName, string $collectionName, array | object $filter, array | object $update, array $options = [] ) Constructs an update command.
execute ( MongoDB\Driver\Server $server ) : UpdateResult Execute the operation.

Описание методов

__construct() публичный метод

Supported options: * bypassDocumentValidation (boolean): If true, allows the write to opt out of document level validation. * upsert (boolean): When true, a new document is created if no document matches the query. The default is false. * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
public __construct ( string $databaseName, string $collectionName, array | object $filter, array | object $update, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$filter array | object Query by which to filter documents
$update array | object Update to apply to the matched documents
$options array Command options

execute() публичный метод

Execute the operation.
См. также: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : UpdateResult
$server MongoDB\Driver\Server
Результат Phalcon\Db\Adapter\MongoDB\UpdateResult