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

Using aliases with columns

I need your advice.

Can i use aliases in columns?

$catalog = Fruits::find(array( 'columns' => ['id', 'name', 'brand.name'] ));

I know that I can use modelsManager, but interesting this shortly method.

Well, it should be possible. Find and findFirst method internally uses modelsManager, and columns parameter is just passed to columns im modelsManager, so i t shouldnt be problem. Problem can be hydration.