【发布时间】:2015-05-20 12:57:46
【问题描述】:
您好,我正在使用 phalcon 框架。
我需要进行查找,通常我会使用 distinct,但我没有找到选项。
我的班级如下:
class Calls extends \Phalcon\Mvc\Collection {
public $agent;
public $number;
public $date;
public $status;
}
我需要使用不同的字段日期和数字?
【问题讨论】:
-
尝试使用原生 php。 $retval = $col->distinct("field_name"); php.net/manual/en/mongocollection.distinct.php
-
我想this answer 会回答你的问题