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