PhpStorm vs. Yii::$app->db->createCommand()


Please - how to get rid of these nasty red underlines in PhpStrom:

Thanks ahead!

PhpStorm is telling you what is the reason when hovering over the underlined code by displaying the info tooltip.

In this case I’m guessing there is no database connected and Storm is indicating unrecognized column names.