src/ORM/Queries/SQLSelect.php
public function setSelect($fields)
    {
        $this->select = array();
        if (func_num_args() > 1) {
            $fields = func_get_args();
        } elseif (!is_array($fields)) {
            $fields = array($fields);
        }
        return $this->addSelect($fields);
    }
public function setSelect($fields)
    {
        $this->select = array();
        if (func_num_args() > 1) {
            $fields = func_get_args();
        } elseif (!is_array($fields)) {
            $fields = array($fields);
        }
        return $this->addSelect($fields);
    }
public function setSelect ( $ fields ) { $ this -> select = array ( ) ; if ( func_num_args ( ) > 1 ) { $ fields = func_get_args ( ) ; } elseif ( ! is_array ( $ fields ) ) { $ fields = array ( $ fields ) ; } return $ this -> addSelect ( $ fields ) ; }
Set the list of columns to be selected by the query.

<code>
// pass fields to select as single parameter array
$query->setSelect(array('"Col1"', '"Col2"'))->setFrom('"MyTable"');

// pass fields to select as multiple parameters
$query->setSelect('"Col1"', '"Col2"')->setFrom('"MyTable"');

// Set a list of selected fields as aliases
$query->setSelect(array('Name' => '"Col1"', 'Details' => '"Col2"')->setFrom('"MyTable"');
</code>

@param string|array $fields Field names should be ANSI SQL quoted. Array keys should be unquoted.
@return $this Self reference
Set the list of columns to be selected by the query .