Exception detected!

Notice: Undefined offset: 0

500 Internal Server Error - ContextErrorException

Stack Trace

  1. in src/Softlogo/DemoBundle/Controller/CatalogController.php at line 72  -
    1.     public function showAction($slug ,Request $request){
    2.         $product=$this->mm->findBy(array('anchor'=>$slug))[0];
    3.         $rootCategory=$this->cm->findBy(array('id'=>1))[0];
    4.         $category=$this->cm->findBy(array('id'=>1))[0];
    5.         $this->setMedias(1);
  2. at ErrorHandler ->handleError ('8', 'Undefined offset: 0', '/home/daqvrensgp/studioazdev/src/Softlogo/DemoBundle/Controller/CatalogController.php', '72', array('slug' => 'suknia_slubna_z_rekawami_947', 'request' => object(Request)))
    in src/Softlogo/DemoBundle/Controller/CatalogController.php at line 72  +
  3. at CatalogController ->showAction ('suknia_slubna_z_rekawami_947', object(Request))
  4. at call_user_func_array (array(object(CatalogController), 'showAction'), array('suknia_slubna_z_rekawami_947', object(Request)))
    in app/bootstrap.php.cache at line 3125  +
  5. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3087  +
  6. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3238  +
  7. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2452  +
  8. at Kernel ->handle (object(Request))
    in web/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +