How do we write an inner join query in symfony?
$tagQuery = Doctrine_Query::create()
->from('SfTagging t')
->innerjoin('t.Link L ON t.taggable_id=L.id');
echo $tagQuery->getSqlQuery();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t need to specify the ON part, doctrine already knows how to make the join if your schema is not too bad. I’d write it like this: