Exception detected!

Fatal error: Call to a member function getMark() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/PointWeb/AppBundle/Controller/DefaultController.php at line 131  -
    1.         $title null;
    2.         if ($id != null) {
    3.             $product $em->getRepository('PointWebProductBundle:Product')->find($id);
    4.             $title ucfirst($product->getMark()) . " " ucfirst($product->getModel());
    5.         }
    6.         return $this->render('PointWebAppBundle:Default:contact.html.twig', array(
    7.             'entity' => $entity,
  2. at DefaultController ->contactAction (object(Request))
  3. at call_user_func_array (array(object(DefaultController), 'contactAction'), array(object(Request)))
    in app/bootstrap.php.cache at line 3054  +
  4. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  5. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  6. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  7. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +