Hi all,
Just wondering if anyone has come across a way of getting PhpStorm to recognise behaviours?
I’ve got a couple of behaviours in my application and everything works fine.
It’s just a little annoying that PhpStorm doesn’t recognise the method and complains that the methods don’t exist.
As an example, in my controller I have this:
public function behaviors()
{
return array(
'myBehavior' => array(
'class' => 'application.components.myBehavior',
)
);
}
Calling a method from the behaviour works fine
$this->myMethod();
but PhpStorm just doesn’t know about it. It confuses the hell out of people when I’m training them on the system.
Anybody happen to know anything we can do about it to help PhpStorm figure it out? Annotations etc?
Thanks