diff --git a/framework/db/ActiveQuery.php b/framework/db/ActiveQuery.php index 6932798..023e63b 100644 --- a/framework/db/ActiveQuery.php +++ b/framework/db/ActiveQuery.php @@ -223,8 +223,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface */ public function one($db = null) { - $command = $this->createCommand($db); - $row = $command->queryOne(); + $row = parent::one($db); if ($row !== false) { if ($this->asArray) { $model = $row;