Exception detected!

No result was found for query although at least one row was expected.

500 Internal Server Error - NoResultException

Stack Trace

  1. in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 649  -
    1.         $result $this->execute(null$hydrationMode);
    2.         if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
    3.             throw new NoResultException;
    4.         }
    5.         if ( ! is_array($result)) {
  2. at AbstractQuery ->getSingleResult ()
    in src/AppBundle/Repository/NewsRepository.php at line 54  +
  3. at NewsRepository ->findOneBySlug ('skidka-20')
    in src/AppBundle/Controller/NewsController.php at line 39  +
  4. at NewsController ->viewAction ('skidka-20')
  5. at call_user_func_array (array(object(NewsController), 'viewAction'), array('skidka-20'))
    in app/bootstrap.php.cache at line 3054  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 3016  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3165  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2406  +
  9. at Kernel ->handle (object(Request))
    in public_html/app.php at line 28  +

Logs  -

Stack Trace (Plain Text)  +