You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yii\db\Query::$indexBy should support being set to an aliased column name, for example:
$query->indexBy('users.username');
Oddly, there already is half-baked support for this in column(), in that the FROM table alias is only prepended to the DB query if indexBy doesn’t already contain a .:
yii\db\Query::$indexBy
should support being set to an aliased column name, for example:Oddly, there already is half-baked support for this in
column()
, in that theFROM
table alias is only prepended to the DB query ifindexBy
doesn’t already contain a.
:yii2/framework/db/Query.php
Line 311 in bbbcc9e
To complete the feature, the table alias just needs to be stripped out on this line, if set:
yii2/framework/db/Query.php
Line 325 in bbbcc9e
The text was updated successfully, but these errors were encountered: