Answer the question
In order to leave comments, you need to log in
Chain style and code completion in PhpStorm 6.0.3
Good afternoon. Faced a problem (quite a long time ago, but now it's already rooted). The bottom line is that I describe the call of class methods in chain-style form. And the IDE stops defining methods after the second step. For example:
$Users = User::find()->filterByRole('manager')->orderBy('name')->limit(20)->all();
$UserQuery = User::find(); $UserQuery->filterByRole('manager')->orderBy('name'); $Users = $UserQuery->limit(20)->all();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question