您好,如何使用 CakePHP 按日期时间字段进行分组和排序?
最佳答案
$this->Post->find('all', array(
'order' => array('Post.date' => 'DESC'),
'group' => 'Post.date'
));
关于mysql - 如何按日期时间 Cakephp 分组和排序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2206121/