yii2support icon indicating copy to clipboard operation
yii2support copied to clipboard

FR: Add autocompletion in setAttributes() for Model successors

Open wapmorgan opened this issue 5 years ago • 1 comments

It would be nice if autocompletion work for Model::setAttributes($values) just like for BaseObject::__construct($config = []) (with Go To, Rename and etc).

What steps will reproduce the problem?

Have a model

class User extends Model {
  public $name;
}

Set attributes of model:

$model = new User();
$model->setAttributes([
  'name' => $name,
], false);

What is the expected result?

Working Go-To for name assignment.

What do you get instead?

Cannot find declaration to go to.

Additional info

Q A
IDE Name PhpStorm
IDE Version 2019.1.2
Plugin version v0.10.57.23
Yii App Template doesn't matter

wapmorgan avatar May 28 '19 13:05 wapmorgan

I think that's really important functionality

wapmorgan avatar May 29 '19 08:05 wapmorgan