Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

模型注释 查询语句加where IDE没有依赖注入 #408

Closed
YouZiXiL opened this issue May 10, 2024 · 4 comments
Closed

模型注释 查询语句加where IDE没有依赖注入 #408

YouZiXiL opened this issue May 10, 2024 · 4 comments

Comments

@YouZiXiL
Copy link

image

@YouZiXiL
Copy link
Author

模型注释 查询语句加where IDE没有依赖注入

@YouZiXiL
Copy link
Author

Webman-framework v1.5.16

@walkor
Copy link
Owner

walkor commented May 10, 2024

数据库组件是laravel控制的项目,不是webman控制的。
应该是加上where后返回的类型是不可预知的,你可以强制加加一个类型标记给它。

/* @var Users $row */
$row = Users::where( column: "id'operator: 1)->first();

@walkor walkor closed this as completed May 10, 2024
@YouZiXiL
Copy link
Author

最新版已优化

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants