I have a simple entity with many-to-many and one-to-many associations. I\'m aware of \'Joins\' for fetching related associations which is a manual solution for my problem.>
$query = $em->createQuery("SELECT p, f FROM Entities\\Patientprofile p JOIN p.Foo f WHERE p.id = ?1");
$query->setParameter(1, 321);
$patient = $query->getSingleResult();