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