我正在使用 Propel ORM 编写查询
查询的形式为:
select * from some_table where some_table.created_at = (SELECT MAX(some_table.created_at) from some_table);
我做到了这一点:
$c = new Criteria();
$c->addSelectColumn('MAX('.self::CREATED_AT.')');
任何人都知道如何使用 Propel 来执行此操作,以节省我编写 RAW SQL 的时间吗?