From bbb6a9326dc2ba5ad785f3fad98a51d9b76bfdc7 Mon Sep 17 00:00:00 2001 From: Andrey Kolobov Date: Fri, 8 Apr 2016 14:31:03 +0500 Subject: [PATCH] fix --- ActiveQuery.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ActiveQuery.php b/ActiveQuery.php index f9789a7c7..4cf89bd17 100644 --- a/ActiveQuery.php +++ b/ActiveQuery.php @@ -417,7 +417,7 @@ private function findByPk($db, $type, $columnName = null) case 'Column': $column = []; foreach ($data as $dataRow) { - $row = $this->parseList($dataRow); + $row = $this->parseRow($dataRow); $column[] = $row[$columnName]; } @@ -425,7 +425,7 @@ private function findByPk($db, $type, $columnName = null) case 'Sum': $sum = 0; foreach ($data as $dataRow) { - $row = $this->parseList($dataRow); + $row = $this->parseRow($dataRow); $sum += $row[$columnName]; } @@ -435,7 +435,7 @@ private function findByPk($db, $type, $columnName = null) $count = 0; foreach ($data as $dataRow) { $count++; - $row = $this->parseList($dataRow); + $row = $this->parseRow($dataRow); $sum += $row[$columnName]; } @@ -443,7 +443,7 @@ private function findByPk($db, $type, $columnName = null) case 'Min': $min = null; foreach ($data as $dataRow) { - $row = $this->parseList($dataRow); + $row = $this->parseRow($dataRow); if ($min == null || $row[$columnName] < $min) { $min = $row[$columnName]; } @@ -453,7 +453,7 @@ private function findByPk($db, $type, $columnName = null) case 'Max': $max = null; foreach ($data as $dataRow) { - $row = $this->parseList($dataRow); + $row = $this->parseRow($dataRow); if ($max == null || $row[$columnName] > $max) { $max = $row[$columnName]; }