Creates a DB command that can be used to execute this query.
public createCommand ( |
||
$db | the DB connection used to create the DB command. If `null`, the DB connection returned by [[modelClass]] will be used. | |
return | the created DB command instance. |