No result was found for query although at least one row was expected.
500 Internal Server Error - NoResultException
Stack Trace
-
in /home/senso/megapoint/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 /home/senso/megapoint/src/Megapoint/CmsBundle/Repository/CategoryRepository.php at line 41 -
at
CategoryRepository
->getCategoryBySlug
('indicadors-de-processos')
in /home/senso/megapoint/src/Megapoint/CmsBundle/Controller/Frontend/CmsController.php at line 259 - at CmsController ->categoryAction (object(Request), 'indicadors-de-processos')
-
at
call_user_func_array
(array(object(CmsController), 'categoryAction'), array(object(Request), 'indicadors-de-processos'))
in kernel.root_dir/bootstrap.php.cache at line 2911 -
at
HttpKernel
->handleRaw
(object(Request), '1')
in kernel.root_dir/bootstrap.php.cache at line 2883 -
at
HttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 3022 -
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in kernel.root_dir/bootstrap.php.cache at line 2303 -
at
Kernel
->handle
(object(Request))
in /home/senso/public_html/app.php at line 27