I created simple Action based on this tutorial (the same entities and stuff).
$em = $this->getServiceLocator()->get('Doctrine\ORM\EntityManager');
$dql = "SELECT b, e, r FROM Bug b JOIN b.engineer e JOIN b.reporter r ORDER BY b.created DESC";
$query = $em->createQuery($dql);
$query->setMaxResults(30);
$bugs = $query->getResult();
And now Zend just throws 500 without any information. By commenting the lines I found out that tha problem occures on $bugs = $query->getResult();
line but I have no information - just 500 (even apache error log is empty). Are there any tools for debug?