Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissedFieldInspection inspection error on orderBy method after upgrading Yii2 to 2.0.48.* #289

Open
igor-netFantom opened this issue May 29, 2023 · 0 comments

Comments

@igor-netFantom
Copy link

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
MissedFieldInspection

Additional info

Q A
IDE Name PhpStorm
IDE Version 2022.3.3
Plugin version 0.10.58.37
Yii App Template basic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant