No result was found for query although at least one row was expected.
500 Internal Server Error - NoResultException
Stack Trace
-
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 649
$result = $this->execute(null, $hydrationMode);
if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
throw new NoResultException;
}
if ( ! is_array($result)) {
-
at
AbstractQuery
->getSingleResult
()
in src/AppBundle/Repository/NewsRepository.php at line 54 -
at
NewsRepository
->findOneBySlug
('den-molodezhi-24-iyunya-na-beretskoy-polyane')
in src/AppBundle/Controller/NewsController.php at line 39 - at NewsController ->viewAction ('den-molodezhi-24-iyunya-na-beretskoy-polyane')
-
at
call_user_func_array
(array(object(NewsController), 'viewAction'), array('den-molodezhi-24-iyunya-na-beretskoy-polyane'))
in app/bootstrap.php.cache at line 3054 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 3016 -
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3165 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2406 -
at
Kernel
->handle
(object(Request))
in public_html/app.php at line 28