Correct call fetchAll in SqlModel.find().
This commit is contained in:
@ -208,7 +208,7 @@ abstract class SqlModel extends Model
|
|||||||
$where = $this->db->whereExpr($where);
|
$where = $this->db->whereExpr($where);
|
||||||
$order = isset($order['sort']) ? $this->order($order, $order['sort']) : false;
|
$order = isset($order['sort']) ? $this->order($order, $order['sort']) : false;
|
||||||
$limit = $this->db->limitExpr($limit);
|
$limit = $this->db->limitExpr($limit);
|
||||||
$result_items = parent::fetchAll(
|
$result_items = $this->fetchAll(
|
||||||
(($sql_expression) ? $sql_expression : ('SELECT ' . $select . ' FROM ' . $this->table()))
|
(($sql_expression) ? $sql_expression : ('SELECT ' . $select . ' FROM ' . $this->table()))
|
||||||
. (($where) ? (' WHERE ' . $where) : '')
|
. (($where) ? (' WHERE ' . $where) : '')
|
||||||
. (($order) ? ($order) : '')
|
. (($order) ? ($order) : '')
|
||||||
|
Reference in New Issue
Block a user