doctrine join without relation [duplicate]
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is this possible to join tables in doctrine ORM without using relations? I have 2 classes Month and Vegetable. They don't have any relation together. I would like to play the SQL : SELECT * FROM month, vegetable In MySQL it works perfectly. I try it like that in Doctrine: $months = Doctrine_Query::create() ->select('m.*, v.*') ->from('month m, vegetable v') ->execute(); When I try it, I get : "vegetable" with an