2
我已經安裝了這些軟件包夾具:的Symfony2:試圖加載使用hautelook/alicebundle
"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 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
謝謝,你給了我提示,這是工作:'Sermovi \ Bundle \ ManagementBundle \ Entity \ Customer' – ziiweb
是的錯斜槓:) – alex88