开发者

Doctrine 2 integration problems [closed]

开发者 https://www.devze.com 2023-01-31 05:32 出处:网络
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time,or an extraordinarily narrow situation that is not generally applic
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. 开发者_JAVA百科 Closed 11 years ago.

The issue:

I'm developing my project using MVC pattern. In order to build model I decided to use Doctrine 2 RC2.

For implement View and Controller I want to use Zend Framework 1.11.

While I've developing model I tested it. And the model works fine. Using Doctrine2 console tool I've create all tables in database and quite simply playing with the model entities. And I moved to next step - Integration Doctrine into ZendFramework.

When I finished integration I found follow error message: "Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class Entities\Tourist is not a valid entity or mapped super class.'"

I thought that it's my fault. Then I decided to find the same ready for use package Here is it. I supposed it should works from the box, but it didn't happen. Downloaded package showed me the same error message: "Class Application_Model_Article is not a valid entity or mapped super class."

Now I'm thinking that the problem is in my environtment. But what I need to change in order to get it work? Can anyone help me?

My Environtment: OS: Mac OS X 10.6.5 PHP: 5.3.3 (installed over Macports) Apache: 2.2 (installed over Macports)

Please advise me what is wrong? Does ZendFramework could overlap some Doctrine functionality?

0

精彩评论

暂无评论...
验证码 换一张
取 消