mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-04 22:44:53 +01:00
Fix #18499: When using yii\db\Query::all() and yii\db\Query::$indexBy, the yii\db\Query::$indexBy is auto inserted into yii\db\Query::$select - the same as in yii\db\Query::column()
Co-authored-by: Bizley <pawel@positive.codes> Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
@@ -53,6 +53,8 @@ interface ActiveQueryInterface extends QueryInterface
|
||||
* // return the index value corresponding to $model
|
||||
* }
|
||||
* ```
|
||||
* The column has to be a part of the `SELECT` fragment of a SQL statement.
|
||||
* If [[yii\db\Query::select()|select()]] is used with an array in its parameter, Yii handles adding that required SQL fragment for you.
|
||||
*
|
||||
* @return $this the query object itself
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user