How to order by multiple columns with propel
问题 I need to sort a query by 2 columns. Is this possible using propel? i tried: $c->addAscendingOrderByColumn(self::COL1); $c->addAscendingOrderByColumn(self::COL2); but the second call to addAscendingOrderByColumn overrides the first one. Regards, Radu. 回答1: Unfortunately, if you are using Propel 1.4 (Symfony 1.4), it seems that you will have to switch to raw SQL there... No answer in the (old) Symfony forum : http://oldforum.symfony-project.org/index.php/m/90447/ However, since Propel 1.5 it