ide不提示 有點(diǎn)蛋疼
數(shù)據(jù)庫模型的操作只能手動輸入,沒有提示補(bǔ)全功能
有解決辦法請分享下
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
{
}