protected function findModel($id) { $sql = 'select * from ' . $this->currentTableName . ' where id=' . $id; return LuLu::queryOne($sql); }
public static function queryOne($sql) { return LuLu::queryOne($sql); }
protected function findModel($id) { $sql = 'select * from ' . $this->currentTableName . ' where id=' . $id; return LuLu::queryOne($sql); }
public static function queryOne($sql) { return LuLu::queryOne($sql); }