Warning: Invalid argument supplied for foreach() in /var/www/metalnation.ru/app/model/Extensions/Entity.php on line 121

An exception has been thrown during the rendering of a template ("Invalid object ID") in "includes/battle.twig" at line 7.

#0 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Template.php(253): Twig_Template->displayWithErrorHandling(Array, Array)
#1 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Environment.php(331) : eval()'d code(725): Twig_Template->display(Array)
#2 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Template.php(279): __TwigTemplate_6cf4f2f0c1f89ee34fc7d8ad8a1304eb392486cc0fe8818f5c069281d4c17b2b->doDisplay(Array, Array)
#3 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Template.php(253): Twig_Template->displayWithErrorHandling(Array, Array)
#4 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Template.php(264): Twig_Template->display(Array)
#5 /var/www/metalnation.ru/vendor/twig/twig/lib/Twig/Environment.php(292): Twig_Template->render(Array)
#6 /var/www/metalnation.ru/app/controllers/index.php(105): Twig_Environment->render('index.twig', Array)
#7 [internal function]: {closure}()
#8 /var/www/metalnation.ru/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php(145): call_user_func_array(Object(Closure), Array)
#9 /var/www/metalnation.ru/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php(66): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#10 /var/www/metalnation.ru/vendor/silex/silex/src/Silex/Application.php(538): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#11 /var/www/metalnation.ru/vendor/silex/silex/src/Silex/Application.php(515): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request))
#12 /var/www/metalnation.ru/index.php(42): Silex\Application->run()
#13 {main}