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. |
Please login to continue.