Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

byvlad's avatar

Get main entities if some data exists in pivot

I have three tables: articles tags article_tags

article_tags is a pivot table, which connect article_id and tag_id.

So i need to retrieve articles which contains specific tag. How i can do it? Thank you.

0 likes
1 reply

Please or to participate in this conversation.