PHP 클래스 Phalcon\Db\Adapter\MongoDB\Operation\FindAndModify

This class is used internally by the FindOneAndDelete, FindOneAndReplace, and FindOneAndUpdate operation classes.
또한 보기: http://docs.mongodb.org/manual/reference/command/findAndModify/
상속: implements Phalcon\Db\Adapter\MongoDB\Operation\Executable
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__construct ( string $databaseName, string $collectionName, array $options ) Constructs a findAndModify command.
execute ( MongoDB\Driver\Server $server ) : object | null Execute the operation.

비공개 메소드들

메소드 설명
createCommand ( MongoDB\Driver\Server $server ) : MongoDB\Driver\Command Create the findAndModify command.

메소드 상세

__construct() 공개 메소드

Supported options: * bypassDocumentValidation (boolean): If true, allows the write to opt out of document level validation. * fields (document): Limits the fields to return for the matching document. * maxTimeMS (integer): The maximum amount of time to allow the query to run. * new (boolean): When true, returns the modified document rather than the original. This option is ignored for remove operations. The The default is false. * query (document): Query by which to filter documents. * remove (boolean): When true, removes the matched document. This option cannot be true if the update option is set. The default is false. * sort (document): Determines which document the operation modifies if the query selects multiple documents. * update (document): Update or replacement to apply to the matched document. This option cannot be set if the remove option is true. * upsert (boolean): When true, a new document is created if no document matches the query. This option is ignored for remove operations. The default is false. * writeConcern (MongoDB\Driver\WriteConcern): Write concern. This option is only supported for server versions >= 3.2.
public __construct ( string $databaseName, string $collectionName, array $options )
$databaseName string Database name
$collectionName string Collection name
$options array Command options

execute() 공개 메소드

Execute the operation.
또한 보기: Executable::execute()
public execute ( MongoDB\Driver\Server $server ) : object | null
$server MongoDB\Driver\Server
리턴 object | null