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
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
Q
A
IDE Name
PhpStorm
IDE Version
2022.3.3
Plugin version
0.10.58.37
Yii App Template
basic
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: