Fatal error: Call to a member function getId() on null
500 Internal Server Error - FatalThrowableError
Stack Trace
-
in src/PointWeb/UserBundle/Controller/AccountController.php at line 179
$items = null;
$em = $this->getDoctrine()->getManager();
$repo = $em->getRepository('PointWebEcommerceBundle:Order');
$orders = $repo->findBy(array('user' => $this->getUser()->getId()));
if ($orders) {
$orders_ids = array();
foreach ($orders as $order) {
- at AccountController ->avisAction ()
-
at
call_user_func_array
(array(object(AccountController), 'avisAction'), array())
in app/bootstrap.php.cache at line 3054 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3016 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3165 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2406 -
at
Kernel
->handle
(object(Request))
in web/app.php at line 28