public createCommand ( $sql ) : TDbCommand | ||
return | TDbCommand | corresponding database command. |
public function createCommand($sql)
{
$this->getDbConnection()->setActive(true);
return $this->getDbConnection()->createCommand($sql);
}