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

maslauskast's avatar

Get join query from relationship

Hi,

is there any way to get the join query from relationship object? I need to join many related models and I don't want to write all the joins, maybe there's a way to pluck it from related model by any chance?

0 likes
0 replies

Please or to participate in this conversation.