When I execute this query I get correct result
$entity = $em->getRepository('SurgeryPatientBundle:Visits')
->countDoctorVisits(13, '2013-03-01', '2013-05-30');
But If look like this
$entity = $em->getRepository('SurgeryPatientBundle:Visits')->findAll();
I get Error 500, /var/log/mysql.err is empty also /var/log/mysql.log
What and how I should show ? And how fixed this