Exception detected!

Call to a member function getVues() on null

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/Nanotech/cameroun/MaisonBundle/Controller/MaisonController.php at line 139  -
    1.         $maison $em->getRepository('NanotechcamerounMaisonBundle:Maison')->find($id);
    2.         
    3.         $nbe=$maison->getVues();
    4.         
    5.         $maison->setVues($nbe +1);
    6.         $em->flush();
  2. at MaisonController ->consulter_maisonAction ('280')
  3. at call_user_func_array (array(object(MaisonController), 'consulter_maisonAction'), array('280'))
    in app/bootstrap.php.cache at line 3137  +
  4. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3096  +
  5. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3250  +
  6. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2484  +
  7. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +