Upgrade Yii framework to **2.0.48.**
`composer require yiisoft/yii2 2.0.48. Use orderBy() on ActiveQuery for searching ActiveRecord model. \app\models\User::find()->orderBy(['id'=>SORT_DESC])->one();`
What is the expected result?
Same as on yiisoft/yii2 **2.0.47.***:
No inspection errors on orderBy() parameters.
What do you get instead?
MissedFieldInspection (PHP/Framework/Yii2/Object Factory/Missed field)
Field 'id' not exists in referenced class \yii\db\ExpressionInterface
What steps will reproduce the problem?
Upgrade Yii framework to **2.0.48.** `composer require yiisoft/yii2 2.0.48.
Use orderBy() on ActiveQuery for searching ActiveRecord model.
\app\models\User::find()->orderBy(['id'=>SORT_DESC])->one();`What is the expected result?
Same as on yiisoft/yii2 **2.0.47.***: No inspection errors on orderBy() parameters.
What do you get instead?
MissedFieldInspection (PHP/Framework/Yii2/Object Factory/Missed field) Field 'id' not exists in referenced class \yii\db\ExpressionInterface
Additional info