Hello!
I'm writing api with Micro and use PHPStorm 8.
In nutshell, i have this:
class FoobarModel extends \Phalcon\Mvc\Model {
public $id;
public $name;
}
class FoobarController extends \Phalcon\Mvc\Controller {
public function foobarTest() {
$foobar = FoobarModel::findFirst(42);
echo $foobar->name; // No autocompletion )-:
}
}
I've installed DevTools and framework autocompletion works good.
So, my question is simple: how to autocomplete model fields after finding? findFirst() returns \Phalcon\Mvc\Model instanse and does not show any DocBlocks/fields that in FoobarModel exists.
UPD #1. And what about this:
$foobars = FoobarModel::query()->orderBy('date DESC')->execute();
foreach ($foobars as $foobar)
echo "$foobar->name\n"; // No autocompletion here too )-:
Do i need to write DockBlocks for every using ORM?
Thanks!