我想使用doctrine方法翻译跟随查询
select * from scheda s join statoscheda ss on ss.id = s.idStatoScheda
我已经尝试了这个但是没有工作:
$em = $this->getDoctrine()->getManager();
$entities = $em
->getRepository('SchedaBundle:Scheda')
->createQueryBuilder('s')
->join('s.StatoScheda', 'ss')
->getQuery()
->getResult();