Olá,
Estou iniciando em Zend Framework 2 e Doctrine 2. Estou empolgado pois
cheguei até um ponto que me parece estar legal. Acontece que esbarrei nesta
mensagem de erro:
Ocorreu um erroAn error occurred during execution; please try again later.
------------------------------
Informação adicional:Doctrine\Common\Persistence\Mapping\MappingException
Arquivo:
/var/www/L4T_Gestao/vendor/doctrine/common/lib/Doctrine/Common/Persistence/Mapping/MappingException.php:37
Mensagem:
The class 'Gestao\Entity\Cliente' was not found in the chain configured
namespaces
Pilha de execução:
#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}
E não consigo avançar além deste ponto. Já verifiquei todos os arquivos de
configuração e nada. Os namespaces estão corretos etc, etc etc.
Preciso de ajuda para descobrir o que se passa. Meu projeto está publico no GIT
em https://github.com/cbragato/L4T_Gestao
Grato pela ajuda
--
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.