symfony2:尝试使用hautelook/alicebundle加载fixture



我已经安装了这些捆绑包:

    "doctrine/doctrine-fixtures-bundle": "dev-master",
    "hautelook/alice-bundle": "dev-master"

我有这个固定装置:

// src/Sermovi/Bundle/ManagementBundle/DataFixtures/ORM/test.yml
Customer:
    user0:
        name: bob
    user1:
        name: alice

当我运行doctrine:fixtures:load时,我得到的是:

  > purging database
  > loading SermoviBundleManagementBundleDataFixturesORMTestLoader
PHP Fatal error:  Class 'Customer' not found in /home/tirengarfio/workspace/sermovi/vendor/nelmio/alice/src/Nelmio/Alice/Loader/Base.php on line 404

您可能应该使用Customer类的FQCN,例如

SermoviBundleManagementBundleEntityCustomer:
    user0:
        name: bob
    user1:
        name: alice

相关内容

  • 没有找到相关文章

最新更新