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

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

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

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

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

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

Supported options: * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
public __construct ( string $databaseName, string $collectionName, array | object $filter, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$filter array | object Query by which to delete documents
$options array Command options

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

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