Exception detected!

Error: Call to a member function getInclusionAddtionalCriteria() on a non-object

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/AppBundle/Controller/MedicalTrialController.php at line 94  -
    1.     public function showAction(Request $request)
    2.     {
    3.         $medicalTrial $this->getDoctrine()->getRepository('AppBundle:MedicalTrial')->findById((Int)$request->attributes->get('id'));
    4.         $medicalTrial->getInclusionAddtionalCriteria();
    5.         if (!$medicalTrial instanceof MedicalTrial) {
    6.             throw $this->createNotFoundException();
    7.         }

Logs  -

Stack Trace (Plain Text)  +