Hi Clodoaldo,

On 22 January 2015 at 19:20, Clodoaldo Bragato Lopes <
[email protected]> wrote:

> Hello,
>
> I am starting in Zend Framework 2 and Doctrine 2. I'm excited because I
> got to a point that seems to me to be cool. It turns out that bumped this
> error message:
>
> *An error occurred*
> An error occurred during execution; please try again later.
> Addictional Information:
> Doctrine\Common\Persistence\Mapping\MappingException
>
> File:
>
> /var/www/L4T_Gestao/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php:37
>
> Messagem:
> The class 'Gestao\Entity\Cliente' was not found in the chain configured
> namespaces
> Stack trace:
> #0
> /var/www/L4T_Gestao/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/Driver/MappingDriverChain.php(113):
> Doctrine\Common\Persistence\Mapping\MappingException::classNotFoundInNamespaces('Gestao\Entity\C...',
> Array)
> #1
> /var/www/L4T_Gestao/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(117):
> Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain->loadMetadataForClass('Gestao\Entity\C...',
> Object(Doctrine\ORM\Mapping\ClassMetadata))
> #2
> /var/www/L4T_Gestao/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(318):
> Doctrine\ORM\Mapping\ClassMetadataFactory->doLoadMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata),
> NULL, false, Array)
> #3
> /var/www/L4T_Gestao/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(211):
> Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->loadMetadata('Gestao\Entity\C...')
> #4
> /var/www/L4T_Gestao/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(265):
> Doctrine\Common\Persistence\Mapping\AbstractClassMetadataFactory->getMetadataFor('Gestao\Entity\C...')
> #5
> /var/www/L4T_Gestao/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php(67):
> Doctrine\ORM\EntityManager->getClassMetadata('Gestao\Entity\C...')
> #6
> /var/www/L4T_Gestao/vendor/doctrine/orm/lib/Doctrine/ORM/Repository/DefaultRepositoryFactory.php(50):
> Doctrine\ORM\Repository\DefaultRepositoryFactory->createRepository(Object(Doctrine\ORM\EntityManager),
> 'Gestao\Entity\C...')
> #7
> /var/www/L4T_Gestao/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php(665):
> Doctrine\ORM\Repository\DefaultRepositoryFactory->getRepository(Object(Doctrine\ORM\EntityManager),
> 'Gestao\Entity\C...')
> #8
> /var/www/L4T_Gestao/module/Gestao/src/Gestao/Controller/ClienteController.php(43):
> Doctrine\ORM\EntityManager->getRepository('Gestao\Entity\C...')
> #9
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractActionController.php(83):
> Gestao\Controller\ClienteController->indexAction()
> #10 [internal function]:
> Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
> #11
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468):
> call_user_func(Array, Object(Zend\Mvc\MvcEvent))
> #12
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207):
> Zend\EventManager\EventManager->triggerListeners('dispatch',
> Object(Zend\Mvc\MvcEvent), Object(Closure))
> #13
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/AbstractController.php(117):
> Zend\EventManager\EventManager->trigger('dispatch',
> Object(Zend\Mvc\MvcEvent), Object(Closure))
> #14
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/Mvc/DispatchListener.php(114):
> Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request),
> Object(Zend\Http\PhpEnvironment\Response))
> #15 [internal function]:
> Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
> #16
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468):
> call_user_func(Array, Object(Zend\Mvc\MvcEvent))
> #17
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207):
> Zend\EventManager\EventManager->triggerListeners('dispatch',
> Object(Zend\Mvc\MvcEvent), Object(Closure))
> #18
> /var/www/L4T_Gestao/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(309):
> Zend\EventManager\EventManager->trigger('dispatch',
> Object(Zend\Mvc\MvcEvent), Object(Closure))
> #19 /var/www/L4T_Gestao/public/index.php(17): Zend\Mvc\Application->run()
> #20 {main}
>
> And I can not go beyond this point. I checked all the configuration files
> and nothing. Namespaces are correct etc etc etc.
> I need help to find out what's going on. My project is in the public GIT
> in https://github.com/cbragato/L4T_Gestao
> Grateful for the help
>
> --
>
>

It simply looks like you don't have correct autoloading for that class in
place.

Marco Pivetta

http://twitter.com/Ocramius

http://ocramius.github.com/

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to