How can I implement the following query with Query Builder?
SELECT *
FROM t
WHERE t.status = 1
OR EXISTS(SELECT *
FROM r
WHERE r.t_id = t.id
AND r.status = 1
)
The part without exist check is easy, but is there a way to implement the EXISTS
?