public function getFresh($columns = array(), $cursor = false)
{
if (is_null($this->columns)) {
$this->columns = $columns;
}
$results = $this->connection->{$this->collection}->find($this->compileWheres($this), $this->prepareColumns());
if (!is_null($this->orders)) {
$results = $results->sort($this->orders);
}
if (!is_null($this->offset)) {
$results = $results->skip($this->offset);
}
if (!is_null($this->limit)) {
$results = $results->limit($this->limit);
}
if ($cursor) {
return new Cursor($results);
} else {
return iterator_to_array($results);
}
}