Exception detected!

Error: Call to a member function getId() on null

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/CoreBundle/Controller/DefaultController.php at line 1538  -
    1.         /** @var SpecModel $model */
    2.         $model $this->get("corebundle.model.specmodel");
    3.         /** @var ArrayCollection<Spec> $specs */
    4.         $specs $model->findListByBikeId($bike->getId());
    5.         return $this->render('@Core/Default/bike.html.twig',
    6.             array( 'bike' => $bike'specs' => $specs)

Logs  -

Stack Trace (Plain Text)  +