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/Owyn/GalleryBundle/Entity/AlbumRepository.php at line 25  +
  3. at AlbumRepository ->findOneByGalleryAndAlbum ('sinistres', 'contact')
    in src/AppBundle/Controller/DefaultController.php at line 51  +
  4. at DefaultController ->galleryAlbumAction ('sinistres', 'contact')
  5. at call_user_func_array (array(object(DefaultController), 'galleryAlbumAction'), array('sinistres', 'contact'))
    in app/bootstrap.php.cache at line 3022  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in app/bootstrap.php.cache at line 2984  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 3133  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 2377  +
  9. at Kernel ->handle (object(Request))
    in web/app.php at line 30  +

Logs  -

Stack Trace (Plain Text)  +