国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman 數(shù)據(jù)庫模型phpstorm不提示有什么好的解決辦法嗎?

wang5955616

截圖
ide不提示 有點(diǎn)蛋疼
數(shù)據(jù)庫模型的操作只能手動輸入,沒有提示補(bǔ)全功能
有解決辦法請分享下

2991 2 1
2個回答

不敗少龍

我的是有提示的,是不是少了文件

  • wang5955616 2021-03-30

    沒有少文件吧,都是正常安裝的,構(gòu)造器有提示,就是模型沒有提示

  • 不敗少龍 2021-03-30

    我看錯了 find這些方法確實是沒有提示

dotdotdot

ThinkOrm的話修改support\Model.php文件

/**
 * Class Model
 * @package think
 * @mixin Query
 * @method Query where(mixed $field, string $op = null, mixed $condition = null) static 查詢條件
 * @method Query whereRaw(string $where, array $bind = []) static 表達(dá)式查詢
 * @method Query whereExp(string $field, string $condition, array $bind = []) static 字段表達(dá)式查詢
 * @method Query when(mixed $condition, mixed $query, mixed $otherwise = null) static 條件查詢
 * @method Query join(mixed $join, mixed $condition = null, string $type = 'INNER') static JOIN查詢
 * @method Query view(mixed $join, mixed $field = null, mixed $on = null, string $type = 'INNER') static 視圖查詢
 * @method Query with(mixed $with) static 關(guān)聯(lián)預(yù)載入
 * @method Query count(string $field) static Count統(tǒng)計查詢
 * @method Query min(string $field) static Min統(tǒng)計查詢
 * @method Query max(string $field) static Max統(tǒng)計查詢
 * @method Query sum(string $field) static SUM統(tǒng)計查詢
 * @method Query avg(string $field) static Avg統(tǒng)計查詢
 * @method Query field(mixed $field, boolean $except = false) static 指定查詢字段
 * @method Query fieldRaw(string $field, array $bind = []) static 指定查詢字段
 * @method Query union(mixed $union, boolean $all = false) static UNION查詢
 * @method Query limit(mixed $offset, integer $length = null) static 查詢LIMIT
 * @method Query order(mixed $field, string $order = null) static 查詢ORDER
 * @method Query orderRaw(string $field, array $bind = []) static 查詢ORDER
 * @method Query cache(mixed $key = null , integer $expire = null) static 設(shè)置查詢緩存
 * @method mixed value(string $field) static 獲取某個字段的值
 * @method array column(string $field, string $key = '') static 獲取某個列的值
 * @method mixed find(mixed $data = null) static 查詢單個記錄
 * @method mixed select(mixed $data = null) static 查詢多個記錄
 * @method mixed get(mixed $data = null,mixed $with =[],bool $cache= false) static 查詢單個記錄 支持關(guān)聯(lián)預(yù)載入
 * @method mixed getOrFail(mixed $data = null,mixed $with =[],bool $cache= false) static 查詢單個記錄 不存在則拋出異常
 * @method mixed findOrEmpty(mixed $data = null,mixed $with =[],bool $cache= false) static 查詢單個記錄  不存在則返回空模型
 * @method mixed all(mixed $data = null,mixed $with =[],bool $cache= false) static 查詢多個記錄 支持關(guān)聯(lián)預(yù)載入
 * @method \think\Model withAttr(array $name,\Closure $closure) 動態(tài)定義獲取器
 */
class Model extends BaseModel
{

}
  • 暫無評論
年代過于久遠(yuǎn),無法發(fā)表回答
??