select() accepts an arbitrary number of parameters. Each parameter
must contain either the name of a column or an array containing
the names of the columns.
Each call to select() appends columns to the list of columns that will be
used in the query.
Example:
$q->select( 'column1', 'column2' );
The same could also be written
$columns[] = 'column1';
$columns[] = 'column2;
$q->select( $columns );
or using several calls
$q->select( 'column1' )->select( 'column2' );
Each of above code produce SQL clause 'SELECT column1, column2' for the query. public select ( ) : eZ\Publish\Core\Persistence\Database\SelectQuery | ||
return | eZ\Publish\Core\Persistence\Database\SelectQuery | returns a pointer to $this. |