We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 ?



85.5k
::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.