1
我有一個集成了Doctrine 2的Zend Framework項目。項目結構看起來像下面:Zend Framework - Doctrine2 - 更改存儲庫自動加載位置?
|Project
|-Application
|-api
|-configs
|-controllers
|-models
|-Entities
|-UserManagement
|-Users.php
|-Passwords.php
|-Proxies
|-Repositories
|-UserManagement
|-UsersRepository.php
|-PasswordsRepository.php
|-modules
|-views
|-Bootstrap.php
|-Docs
|-Library
|-Public
|-.zfproject.xml
每當我嘗試使用一個存儲庫,由於某種原因,它試圖從實體文件夾結構加載它,我得到這個錯誤信息:
Warning: require(M:\mysite\application/models/entities\UserManagement\UsersRepository.php) [function.require]: failed to open stream: No such file or directory in M:\mysite\library\Doctrine\Common\ClassLoader.php on line 163
我需要做的是改變Doctrine 2正在尋找知識庫的途徑,但是我試着做的似乎並不奏效。
如何設置庫路徑?