Call to a member function getVues() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/Nanotech/cameroun/MaisonBundle/Controller/MaisonController.php at line 139
$maison = $em->getRepository('NanotechcamerounMaisonBundle:Maison')->find($id);
$nbe=$maison->getVues();
$maison->setVues($nbe +1);
$em->flush();
- at MaisonController ->consulter_maisonAction ('1480')
-
at
call_user_func_array
(array(object(MaisonController), 'consulter_maisonAction'), array('1480'))
in app/bootstrap.php.cache at line 3137 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3096 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3250 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2484 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28