Skip to content

Instantly share code, notes, and snippets.

@codecowboy
Created September 1, 2011 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecowboy/1185908 to your computer and use it in GitHub Desktop.
Save codecowboy/1185908 to your computer and use it in GitHub Desktop.
Get users for admin
public function findUserAdminDetails()
{
$query = $this->getEntityManager()->createQuery('
SELECT u, p, m
FROM GymloopCoreBundle:User u
JOIN u.programmes p
JOIN u.motivation m
');
$result = $query->getArrayResult(); var_dump($result); exit;
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment