【发布时间】:2009-12-08 17:50:33
【问题描述】:
我正在使用 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 的时间吗?
【问题讨论】:
标签: propel