elasticsearch\Query createCommand()

createCommand() public method

Creates a DB command that can be used to execute this query.

public yii\elasticsearch\Command createCommand ( $db = null )
$db yii\elasticsearch\Connection

The database connection used to execute the query. If this parameter is not given, the elasticsearch application component will be used.

return yii\elasticsearch\Command

The created DB command instance.

doc_Yii
2016-10-30 17:02:05
Comments
Leave a Comment

Please login to continue.