【发布时间】:2011-10-05 05:42:53
【问题描述】:
我希望将包安装到我的 symfony 项目中。但是,我遇到了一些问题。如果答案是微不足道的,请接受我的无知,但我已经尝试寻找解决方案,但可惜我什么也没找到。
在我的 deps 文件中,我有:
[doctrine-couchdb]
git=http://github.com/doctrine/couchdb-odm.git
[DoctrineCouchDBBundle]
git=http://github.com/doctrine/DoctrineCouchDBBundle.git
target=/bundles/Symfony/Bundle/DoctrineCouchDBBundle
我运行 bin/vendors install 命令
在我的 autoload.php 文件中,我有:
'Doctrine\\ODM\\CouchDB'=> __DIR__.'/../vendor/doctrine-couchdb/lib',
我已经注册了捆绑包:
new Doctrine\Bundle\CouchDBBundle\DoctrineCouchDBBundle()
当我运行 php app/console 时出现错误:
Fatal error: Class 'Doctrine\Bundle\CouchDBBundle\DoctrineCouchDBBundle' not found in /var/www/symfony2.test/app/AppKernel.php on line 22
我注意到对于 MongoDB ODM,您有:
[doctrine-mongodb]
git=http://github.com/doctrine/mongodb.git
没有教义-couchdb 存储库吗?你用过这个捆绑包吗?
【问题讨论】:
标签: php symfony doctrine doctrine-orm