select() public method

Adds an array of fields into the select part of the query.
public select ( array $projections, boolean $append = true )
$projections array
$append boolean
示例#1
0
 public function select(array $projections = array(), $append = true)
 {
     return parent::select($projections, $append);
 }
 public function testSelect()
 {
     $query = new Query();
     $this->assertHttpStatus(200, $this->doQuery($query->from(array('address'))));
     $this->assertHttpStatus(200, $this->doQuery($query->select(array('@version', 'street'))));
 }