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

模型多对多关联的中间表如何作为查询条件? #1107

Open
mkinit opened this issue Apr 7, 2022 · 1 comment
Open

模型多对多关联的中间表如何作为查询条件? #1107

mkinit opened this issue Apr 7, 2022 · 1 comment

Comments

@mkinit
Copy link

mkinit commented Apr 7, 2022

我有一个文章表、分类表,中间表(post_id,category_id),是通过多对多关联的,当我查询文章列表的时候,需要指定分类id时怎么查询?只能用视图查询吗?

@mkinit mkinit changed the title 模型多对多关联的数据如何作为查询条件? 模型多对多关联的中间表如何作为查询条件? Apr 7, 2022
@zcenet
Copy link

zcenet commented Oct 11, 2022 via email

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