added note to docs about #8085

This commit is contained in:
Carsten Brandt
2015-04-15 10:03:17 +02:00
parent b002ad746d
commit f99f333218

View File

@@ -428,6 +428,14 @@ class Query extends Component implements QueryInterface
/**
* Add more columns to the SELECT part of the query.
*
* Note, that if [[select]] has not been specified before, you should include `*` explicitly
* if you want to select all remaining columns too:
*
* ```php
* $query->addSelect(["*", "CONCAT(first_name, ' ', last_name) AS full_name"])->one();
* ```
*
* @param string|array $columns the columns to add to the select.
* @return static the query object itself
* @see select()