Join queries in Doctrine on tables without specified relations
问题 I have two tables that do not have a relation defined with each other in the schema.yml. However, table 1 has a foreign key reference to the primary key of table 2. Clearly, I goofed up by not designing the database well, but now it's mitigation time. I must do a left join between the two tables coupled with a where clause that will retrieve the select rows I want. And to do this, I do: Doctrine_Query::create()->select('t.*, l.lid')->from('Taxonomy t')->leftJoin('t.Cid c') ->leftJoin('c