Exception detected!

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

500 Internal Server Error - FatalThrowableError

Stack Trace

  1. in src/PointWeb/UserBundle/Controller/AccountController.php at line 179  -
    1.         $items null;
    2.         $em $this->getDoctrine()->getManager();
    3.         $repo $em->getRepository('PointWebEcommerceBundle:Order');
    4.         $orders $repo->findBy(array('user' => $this->getUser()->getId()));
    5.         if ($orders) {
    6.             $orders_ids = array();
    7.             foreach ($orders as $order) {
  2. at AccountController ->avisAction ()
  3. at call_user_func_array (array(object(AccountController), 'avisAction'), array())
    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)  +