Message: Class ApplicationEntityArticle does not exist
堆栈跟踪:
#0 /var/www/firsthelp/library/Doctrine/Common/Persistence/Mapping/RuntimeReflectionService.php(73): ReflectionClass->__construct('ApplicationEnt...')
#1 /var/www/firsthelp/library/Doctrine/ORM/Mapping/ClassMetadataInfo.php(867): DoctrineCommonPersistenceMappingRuntimeReflectionService->getClass('ApplicationEnt...')
#2 /var/www/firsthelp/library/Doctrine/ORM/Mapping/ClassMetadataFactory.php(517): DoctrineORMMappingClassMetadataInfo->initializeReflection(Object(DoctrineCommonPersistenceMappingRuntimeReflectionService))
#3 /var/www/firsthelp/library/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(300): DoctrineORMMappingClassMetadataFactory->initializeReflection(Object(DoctrineORMMappingClassMetadata), Object(DoctrineCommonPersistenceMappingRuntimeReflectionService))
#4 /var/www/firsthelp/library/Doctrine/Common/Persistence/Mapping/AbstractClassMetadataFactory.php(205): DoctrineCommonPersistenceMappingAbstractClassMetadataFactory->loadMetadata('ApplicationEnt...')
#5 /var/www/firsthelp/library/Doctrine/ORM/EntityManager.php(268): DoctrineCommonPersistenceMappingAbstractClassMetadataFactory->getMetadataFor('ApplicationEnt...')
#6 /var/www/firsthelp/library/Doctrine/ORM/EntityManager.php(682): DoctrineORMEntityManager->getClassMetadata('ApplicationEnt...')
#7 /var/www/firsthelp/application/modules/user/controllers/UserController.php(632): DoctrineORMEntityManager->getRepository('ApplicationEn...')
#8 /var/www/firsthelp/library/Zend/Controller/Action.php(516): User_UserController->configurationAction()
#9 /var/www/firsthelp/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('configurationAc...')
#10 /var/www/firsthelp/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /var/www/firsthelp/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch()
#12 /var/www/firsthelp/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#13 /var/www/firsthelp/public/index.php(52): Zend_Application->run()
#14 {main}
谁能帮助我做错了什么。我正在关注这个[比斯纳](http://www.ibm.com/developerworks/web/library/os-doctrine-php-zend/index.html)。
可能的解决方案:
- 设置 appnamespace = " (application.ini)
- 确保将应用程序命名空间用于实体
找到解决方案:
http://hectorpinol.com/zend-framework-1-11-and-doctrine-2-2-x-integration
并检查pdo_mysql扩展是否在 php 中启用.ini