Skip to content

Instantly share code, notes, and snippets.

@rileyrg
Created July 27, 2017 15:04
Show Gist options
  • Save rileyrg/1ec10fa2d8252238365744da582f8319 to your computer and use it in GitHub Desktop.
Save rileyrg/1ec10fa2d8252238365744da582f8319 to your computer and use it in GitHub Desktop.
$queryBuilder = $this->createQueryBuilder('p')
->select("d.name,d.id")
->innerJoin('p.genresDancing', 'd')
->where('p=:person')
->setParameter('person', $person);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment