Commit 3bb1343d authored by cnagle's avatar cnagle

Fixed serializaation issue when connecting to Mongodb 3.0

parent 3bddd4b1
......@@ -224,7 +224,14 @@ class Builder extends QueryBuilder {
$column = isset($this->columns[0]) ? $this->columns[0] : '_id';
// Execute distinct
$result = $this->collection->distinct($column, $wheres);
if ($wheres)
{
$result = $this->collection->distinct($column, $wheres);
}
else
{
$result = $this->collection->distinct($column);
}
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment