In CakePHP in my controller classes i declare models like this:
public $uses = array('Mydata');
But when i use this:
$r = $this->Userdata->find('all', $params);
phpStorm gives warnings:
Field 'Userdata' not found in class AppController
When I add this warnings for class name disappears:
// * Userdata
// * @var Userdata
But now, when I try to go to declaration of "Userdata" class, IDE can't find the class which is in the one of the folders of project.
Also IDE gives warnings for **find** method. But **find** is a function in base class of Userdata class.
How can i disable this warning without suppressing all warnings.