Hi,
Presuming this is a "Crazy" model class:
public function behaviors()
{
return array_merge(parent::behaviors(),
[
'crazy' => [
'class' => '\namespace\CrazyBehavior',
],
]);
}
Now somewhere else:
$model = new \models\Crazy();
$crazyValue = $model->crazyBehaviorMethod($someParam);
The problem is that for PHPStorm ‘crazyBehaviorMethod’ is ‘not found’ in Crazy model and remains highlighted due to code-analysis warning.
Any idea how to overcome?
Thanks ahead!