nvlad / yii2support

Yii2 Support for PhpStorm / IntelliJ IDEA
https://plugins.jetbrains.com/idea/plugin/9388-yii2-support
Other
295 stars 54 forks source link

Autocomplete for table column #244

Closed ludimassa closed 4 years ago

ludimassa commented 4 years ago

What steps will reproduce the problem?

Hi everyone, This plugin is able to detect column name of table? Rather if I have a table User(idUser primarykey, name, password)

`class User extends ActiveRecord{
 \\no attribute
}`

From a generic model

$identity=User::findOne(['username'=>$this->username]); is possible $identity->WITH AUTOCOMPLETE COLUMNS

What is the expected result?

What do you get instead?

Additional info

Q A
IDE Name PhpStorm
IDE Version
Plugin version
Yii App Template basic / advanced
insperedia commented 4 years ago

The model should have a @property attribute. Those can be generated by the plugin. Reopen bug if it does not work.