diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index c335329..2073e4b 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -92,9 +92,7 @@ public function createCommand($db = null) $this->from = $modelClass::tableName(); } - $commandConfig = $db->getQueryBuilder()->build($this); - - return $db->createCommand($commandConfig); + return parent::createCommand($db); } /**