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) : '')