/** * 单行查询 * @param null $_field * @return mixed */ protected function find($_field = null) { $this->joint_field($_field); $this->_db->_sql = 'SELECT ' . $this->mergeSqlLogic() . ';'; $this->clear_where(); return $this->_db->find(); }
/** * Returns the first occurance of an item with a given id * * @param string $id The item id * @return Item Item object */ public function find($id) { return $this->store->find($id); }
/** * 单行查询 * @param null $_field * @return mixed */ public function find($_field = null) { return $this->_db->find(' SELECT ' . $this->lodeField($_field) . $this->mergeSql()); }