fdezmc

Results 3 comments of fdezmc

I needed hint index with activeRecord. Thought it was not possible to set an expression on from clause with ActiveRecord, now I found the way: ``` $user = User::find()->from([new yii\db\Expression('{{%user}}...

Absolutely, thank you very much for your comments.

As mentioned in #11807 this don´t work with joinWith. ``` // works!!! $query = (new Query)->from([new Expression('{{%user}} USE INDEX (primary)')]); // joinWith relation fails $query = (new Query)->from([new Expression('{{%user}} USE...