src/ORM/Queries/SQLSelect.php
public function selectField($field, $alias = null)
    {
        if (!$alias) {
            if (preg_match('/"([^"]+)"$/', $field, $matches)) {
                $alias = $matches[1];
            } else {
                $alias = $field;
            }
        }
        $this->select[$alias] = $field;
        return $this;
    }
public function selectField($field, $alias = null)
    {
        if (!$alias) {
            if (preg_match('/"([^"]+)"$/', $field, $matches)) {
                $alias = $matches[1];
            } else {
                $alias = $field;
            }
        }
        $this->select[$alias] = $field;
        return $this;
    }
public function selectField ( $ field , $ alias = null ) { if ( ! $ alias ) { if ( preg_match ( '/"([^"]+)"$/' , $ field , $ matches ) ) { $ alias = $ matches [ 1 ] ; } else { $ alias = $ field ; } } $ this -> select [ $ alias ] = $ field ; return $ this ; }
Select an additional field.

@param string $field The field to select (ansi quoted SQL identifier or statement)
@param string|null $alias The alias of that field (unquoted SQL identifier).
Defaults to the unquoted column name of the $field parameter.
@return $this Self reference
Select an additional field .