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.