public function createCommand($sql) { $this->getDbConnection()->setActive(true); return $this->getDbConnection()->createCommand($sql); }