No result was found for query although at least one row was expected.
500 Internal Server Error - NoResultException
Stack Trace
-
in /app/vendor/doctrine/lib/Doctrine/ORM/AbstractQuery.php at line 483
$result = $this->execute(array(), $hydrationMode);
if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
throw new NoResultException;
}
if (is_array($result)) {
-
at
AbstractQuery
->getSingleResult
()
in /app/src/Wuji/BlogBundle/Repository/PostRepository.php at line 66 -
at
PostRepository
->getPostBySlug
('contact')
in /app/src/Wuji/BlogBundle/Controller/PostController.php at line 154 - at PostController ->showAction ('contact')
-
at
call_user_func_array
(array(object(PostController), 'showAction'), array('contact'))
in kernel.root_dir/cache/prod/classes.php at line 3905 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in kernel.root_dir/cache/prod/classes.php at line 3875 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/cache/prod/classes.php at line 4852 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 547 -
at
Kernel
->handle
(object(Request))
in /app/web/app.php at line 22