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?
精彩评论