示例#1
0
 /**
  * Execute the query as a "select" statement.
  *
  * @param array $columns Columns to get
  *
  * @return array
  */
 public function get($columns = array('*'))
 {
     // If no columns have been specified for the select statement, we will set them
     // here to either the passed columns, or the standard default of retrieving
     // all of the columns on the table using the "wildcard" column character.
     if (is_null($this->columns)) {
         $this->columns = $columns;
     }
     $results = $this->connection->select($this->toSql(), $this->bindings, $this->fetchMode, $this->classToFetch);
     $this->processor->processSelect($this, $results);
     return $results;
 }