SQL issue towards QueryBuilder #9105
Unanswered
bglevon
asked this question in
Support Questions
Replies: 1 comment 1 reply
-
Not sure if it helps, but "join with conditions" you can do with something like ->join('o.page', 'p', Expr\Join::WITH, 'p.fkModule = :module OR p.fkSousModule = :sousModule')
->setParameter('module', $module)
->setParameter('sousModule', $sousModule) ..assuming that you have setup your entities etc.. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I need your help, I have an SQL query that I need to change to QueryBuilder, but I can't seem to change this statement.
I've tried many ways, but my solutions don't work.
LEFT JOIN page p ON (p.fk_module_id = mm.id_menu_module OR p.fk_sous_module_id = msm.id_menu_sous_module)
Thanks in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions