DoctrineMongoDBBundle getting a fatal error in Symfony2

后端 未结 1 627
攒了一身酷
攒了一身酷 2021-02-05 23:27

I\'m following the directions here: http://symfony.com/doc/2.0/bundles/DoctrineMongoDBBundle/index.html

I have installed deps:

#deps
[doctrine-mongodb]
          


        
相关标签:
1条回答
  • 2021-02-06 00:00

    Try fixing the bundle's version:

    [DoctrineMongoDBBundle]
        git=http://github.com/symfony/DoctrineMongoDBBundle.git
        target=/bundles/Symfony/Bundle/DoctrineMongoDBBundle
        version=v2.0.0
    

    And remember to always use bin/vendors install — not bin/vendors update. Unless you are developing Symfony itself, of course.

    0 讨论(0)
提交回复
热议问题