doctrine2 - Doctrine dql with left join using the same table -
i trying transform following query dql:
select cm.* conversation__conversation cc inner join conversation__message cm on cm.conversation_id = cc.id inner join vehicle__vehicle vv on vv.id = cc.vehicle_id (cc.driver_id = 25 or vv.owner_id = 25) , cm.id in (select m1.id conversation__message m1 left join conversation__message m2 on m1.conversation_id = m2.conversation_id , m1.id < m2.id m2.id null) order cm.created_at desc;
i see 2 main difficulties in query. first 1 have subselect, check how in dql difficult part make left join using same table. cannot make work... knows how it?
Comments
Post a Comment