Query Select Form

Well i know that we can do this :

$form->add(new Select( "members" , Team::find() ,
        [
          'using' =>  ['uid','name'],
          'class'            => "form-control",
        ]));

BUT , when i use the Team::query() method , this does not work , and i tried to debug it with var_dump and the _rows is null on the query method , so how can i fix this ?



60.8k
::query()->colums([bla bla])->where(bnla bla)->execute();

the idea is that you dont have to type table name and select, and also that once you decide to change the table name you can only update and model and it will be working everywhere.