We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Table::alias('t')->leftJoin('tableb tb','t.id=tb.id')->withCount('file')->select();
这种联表查询有别名就会出错。withCount生成的表名还是原表名。
The text was updated successfully, but these errors were encountered:
withCount是用于关联查询的 不是原生查询
Sorry, something went wrong.
我Table::alias('t')->hasWhere() 这样用也会不识别别名啊
关联查询方法通常都是配合关联使用的 有内置的机制 不需要使用alias hasWhere也是关联查询的
No branches or pull requests
Table::alias('t')->leftJoin('tableb tb','t.id=tb.id')->withCount('file')->select();
这种联表查询有别名就会出错。withCount生成的表名还是原表名。
The text was updated successfully, but these errors were encountered: