Closed zelf closed 12 years ago
Hi, I don't know if you are interested by people posting improvement. (i cannot fork) Anyway: In your file collection.php
I Replaced:
public static function distinct($property) { $results = static::getMongoDb(false)->command(array('distinct' => static::getCollectionName(), 'key' => $property); return $results['values']; }
By this:
public static function distinct($property, $query = array()) { $results = static::getMongoDb(false)->command(array('distinct' => static::getCollectionName(), 'key' => $property, 'query' => $query)); return $results['values']; }
Following the doc here: http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Group
Thanks again for your great work. Have a nice day.
thanks for the patch
Hi, I don't know if you are interested by people posting improvement. (i cannot fork) Anyway: In your file collection.php
I Replaced:
By this:
Following the doc here: http://www.mongodb.org/display/DOCS/Aggregation#Aggregation-Group
Thanks again for your great work. Have a nice day.