我可以在此联接中添加 where 条件以$x->getTable1()->getTable2()
得到与此查询相同的结果:
$y = Doctrine_Query::create()
->from('Table0 t0')
->innerJoin('t0.Table1 t1')
->innerJoin('t1.Table2 t2')
->where('t2.status = "active"')
->execute->getLast();