mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
added note to docs about #8085
This commit is contained in:
@@ -428,6 +428,14 @@ class Query extends Component implements QueryInterface
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Add more columns to the SELECT part of the query.
|
* 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.
|
* @param string|array $columns the columns to add to the select.
|
||||||
* @return static the query object itself
|
* @return static the query object itself
|
||||||
* @see select()
|
* @see select()
|
||||||
|
|||||||
Reference in New Issue
Block a user