From e06ddba773c0f0cbf3d3bf96a89bc36564044434 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 26 Sep 2013 10:45:46 +0400 Subject: [PATCH] Correct call fetchAll in SqlModel.find(). --- model/SqlModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/SqlModel.php b/model/SqlModel.php index 588725e..f99c414 100644 --- a/model/SqlModel.php +++ b/model/SqlModel.php @@ -208,7 +208,7 @@ abstract class SqlModel extends Model $where = $this->db->whereExpr($where); $order = isset($order['sort']) ? $this->order($order, $order['sort']) : false; $limit = $this->db->limitExpr($limit); - $result_items = parent::fetchAll( + $result_items = $this->fetchAll( (($sql_expression) ? $sql_expression : ('SELECT ' . $select . ' FROM ' . $this->table())) . (($where) ? (' WHERE ' . $where) : '') . (($order) ? ($order) : '')