Reputation: 31709
I have installed these bundles:
"doctrine/doctrine-fixtures-bundle": "dev-master",
"hautelook/alice-bundle": "dev-master"
I have this fixtures:
// src/Sermovi/Bundle/ManagementBundle/DataFixtures/ORM/test.yml
Customer:
user0:
name: bob
user1:
name: alice
When I run doctrine:fixtures:load
I get this:
> purging database
> loading Sermovi\Bundle\ManagementBundle\DataFixtures\ORM\TestLoader
PHP Fatal error: Class 'Customer' not found in /home/tirengarfio/workspace/sermovi/vendor/nelmio/alice/src/Nelmio/Alice/Loader/Base.php on line 404
Upvotes: 2
Views: 1351
Reputation: 4918
You should maybe use the FQCN of the Customer class, e.g.
Sermovi\Bundle\ManagementBundle\Entity\Customer:
user0:
name: bob
user1:
name: alice
Upvotes: 3