$result = $this->modelsManager->createBuilder()
->from('Aops\Apps\Admin\Models\TeamsWechats')
->leftjoin('Aops\Apps\Admin\Models\Teams','[Aops\Apps\Admin\Models\TeamsWechats].tid=p.team_id', "p")
->getPhql();
var_dump($result);
it shows "SELECT [Aops\Apps\Admin\Models\TeamsWechats].* FROM [Aops\Apps\Admin\Models\TeamsWechats] LEFT JOIN [Aops\Apps\Admin\Models\Teams] AS [p] ON [Aops\Apps\Admin\Models\TeamsWechats].tid=p.team_id"
then i run
$result = $this->modelsManager->createBuilder()
->from('Aops\Apps\Admin\Models\TeamsWechats')
->leftjoin('Aops\Apps\Admin\Models\Teams','[Aops\Apps\Admin\Models\TeamsWechats].tid=p.team_id', "p")
->getQuery()
->execute();
dd($result);
it shows nothing!!!
why doesn't it work???