Skip to content

Instantly share code, notes, and snippets.

@oaltman
Created February 22, 2014 11:37
Show Gist options
  • Save oaltman/9152529 to your computer and use it in GitHub Desktop.
Save oaltman/9152529 to your computer and use it in GitHub Desktop.
$qb = $this->applicantRepository->createQueryBuilder()
->select('a','c','p')
->from('\App\model\entity\Applicant','a')
->leftJoin('\App\model\entity\Comment','c',Join::WITH,'c.applicant = a')
->leftJoin('\App\model\entity\Payment','p',Join::WITH,'p.applicant = a')
->getQuery();
return $qb->getResult();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment