PHP Class Phalcon\Db\Adapter\MongoDB\Operation\Delete

This class is used internally by the DeleteMany and DeleteOne operation classes.
See also: http://docs.mongodb.org/manual/reference/command/delete/
Inheritance: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
Afficher le fichier Open project: phalcon/incubator

Méthodes publiques

Méthode Description
__construct ( string $databaseName, string $collectionName, array | object $filter, integer $limit, array $options = [] ) Constructs a delete command.
execute ( MongoDB\Driver\Server $server ) : DeleteResult Execute the operation.

Method Details

__construct() public méthode

Supported options: * writeConcern (MongoDB\Driver\WriteConcern): Write concern.
public __construct ( string $databaseName, string $collectionName, array | object $filter, integer $limit, array $options = [] )
$databaseName string Database name
$collectionName string Collection name
$filter array | object Query by which to delete documents
$limit integer The number of matching documents to delete. Must be 0 or 1, for all or a single document, respectively.
$options array Command options

execute() public méthode

Execute the operation.
See also: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : DeleteResult
$server MongoDB\Driver\Server
Résultat Phalcon\Db\Adapter\MongoDB\DeleteResult