Browse Source

Correct call fetchAll in SqlModel.find().

namespace
Alexander Demidov 11 years ago
parent
commit
e06ddba773
  1. 2
      model/SqlModel.php

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

Loading…
Cancel
Save