src/ORM/DataQuery.php
public function selectFromTable($table, $fields)
    {
        $fieldExpressions = array_map(function ($item) use ($table) {
            return Convert::symbol2sql("{$table}.{$item}");
        }, $fields);

        $this->query->setSelect($fieldExpressions);

        return $this;
    }
public function selectFromTable($table, $fields)
    {
        $fieldExpressions = array_map(function ($item) use ($table) {
            return Convert::symbol2sql("{$table}.{$item}");
        }, $fields);

        $this->query->setSelect($fieldExpressions);

        return $this;
    }
public function selectFromTable ( $ table , $ fields ) { $ fieldExpressions = array_map ( function ( $ item ) use ( $ table ) { return Convert :: symbol2sql ( "{$table}.{$item}" ) ; } , $ fields ) ; $ this -> query -> setSelect ( $ fieldExpressions ) ; return $ this ; }
Select the only given fields from the given table.

@param string $table Unquoted table name (will be escaped automatically)
@param array $fields Database column names (will be escaped automatically)
@return $this
Select the only given fields from the given table .