Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665

Fatal error: Uncaught RuntimeException: Failed to start the session because headers have already been sent by "/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php" at line 2636. in /app/cache/prod/classes.php:114 Stack trace: #0 /app/cache/prod/classes.php(191): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() #1 /app/cache/prod/classes.php(491): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->getBag('attributes') #2 /src/AppBundle/Twig/AppExtension.php(29): Symfony\Component\HttpFoundation\Session\Session->get('_locale', 'pl') #3 /app/cache/prod/appProdProjectContainer.php(629): AppBundle\Twig\AppExtension->__construct(Object(Doctrine\ORM\EntityManager), Object(Symfony\Component\HttpFoundation\Session\Session), Object(Symfony\Component\Security\Core\SecurityContext)) #4 /app/bootstrap.php.cache(2204): appProdProjectContainer->getApp_TwigExtensionService() #5 /app/cache/prod/appProdProjectContainer.php(1536): Symfony\Component\DependencyInjection\Container->get('app.tw in /app/cache/prod/classes.php on line 114