mongodb\Connection createCommand()

createCommand() public method (available since version 2.1)

Creates MongoDB command.

public yii\mongodb\Command createCommand ( $document = [], $databaseName = null )
$document array

Command document contents.

$databaseName string|null

Database name, if not set $defaultDatabaseName will be used.

return yii\mongodb\Command

Command instance.

doc_Yii
2016-10-30 17:07:57
Comments
Leave a Comment

Please login to continue.