我已经安装了这些捆绑包:
"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