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

How to get the alias data when the records are found through PHQL(modelsmanager)?

How to get the alias data when the records are found through PHQL(modelsmanager)

for example

               $query=$this->modelsManager->createQuery( SELECT * FROM CorporateWalletRelation);
               $records=$query->execute();
               now using $records i want the alias data of  CorporateWalletRelation
edited Mar '17

What you mean? I don't quite understand. I guess you want to use join here, join related model ans use it. Alias in hasOne/belongsTo etc is only used for model instances, not in phql itself.