Ejemplo n.º 1
0
 /**
  * Execute the query as a "select" statement.
  *
  * @param  array  $columns
  * @return \October\Rain\Halcyon\Collection|static[]
  */
 public function get($columns = ['*'])
 {
     if (!is_null($this->cacheMinutes)) {
         $results = $this->getCached($columns);
     } else {
         $results = $this->getFresh($columns);
     }
     $models = $this->getModels($results ?: []);
     return $this->model->newCollection($models);
 }