elasticsearch\ActiveQuery 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 DB connection used to create the DB command. If null, the DB connection returned by $modelClass will be used.

return yii\elasticsearch\Command

The created DB command instance.

doc_Yii
2016-10-30 17:01:16
Comments
Leave a Comment

Please login to continue.