How do I join a table to itself multiple times in Propel?
问题 I tried the solution in this answer, but it did not work. It resulted in the following SQL: SELECT user.id AS `Id`, user.name AS `Name`, AS `ReferralUser.Id`, AS `ReferralUser.Name` FROM `ReferralUser` INNER JOIN `account` ON (ReferralUser.id=account.id) Note that ReferralUser is not a table in my database, it was meant to be the alias. I need to join a table to itself at least two times, but possibly more in the future. My current code: $q = \UserQuery::create(); $q->select(array('Id', 'Name