public function allWithIds($orderBy = null, $limit = null, $offset = null) { list($whereSql, $args) = $this->getWhereSqlAndArgs(); return $this->table->allWithIds($whereSql, $args, $orderBy, $limit, $offset); }
public function allWithIds() { list($sql, $args) = $this->prepareSqlAndArgs(); $this->db->execute($sql, $args); return $this->table->allWithIds($this->where, $this->whereArgs); }